Strategies for getting an object on server side.
There's a lot of -Project- objects stored in some collection on server.
The GUI uses the server facade to perform services.
There're several Frames and each one related to one server -Project- object.
Performing any operation on server from any GUI Frame would be calling methods like these:
methodOne(String projectName, params...)
methodTwo(String projectName, params...)
methodThree(String projectName, params...)
methodNNN(String projectName, params...)
Under this point of view I'd have to pass always the projectName to any service on server so it knows what Project to retrieve and follow the algorithm...
It's horrible.
I analized about doing a Proxy that returns the facade but previously to returning it, setting the ProjectName to some variables like "activeObject". This variables would be declared inside the Facade.
The third alternative would be setting the prjName facade variable by each Frame ( setting it to the facade ) when it gains the focus.
But this way the facade would have to present a method like
setActiveProject(String prjName)
Hear other suggestions or best of those.
Regards.

