W122498
asked on
Java Object
Hi
How can I get a reference to an object( already instantiated) from different java codes?
Well I am trying to develop a Web application where in the "mainclass -method to access backend", is instantiated once, during server startup.
Now I want to get a reference of it so that I can call any of its method in any Servlet or JSP or a jhtml?
IS RMI the only way, or is there a simpler way?
Thanks
W
How can I get a reference to an object( already instantiated) from different java codes?
Well I am trying to develop a Web application where in the "mainclass -method to access backend", is instantiated once, during server startup.
Now I want to get a reference of it so that I can call any of its method in any Servlet or JSP or a jhtml?
IS RMI the only way, or is there a simpler way?
Thanks
W
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
CORBA would be an alternate solution. I don't think it would be much easier since you will have to deal with things like firewalls.
ASKER
Thanks
I think RMI would be a better alternative to CORBA
I think RMI would be a better alternative to CORBA