Link to home
Start Free TrialLog in
Avatar of W122498
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
ASKER CERTIFIED SOLUTION
Avatar of mmarschall
mmarschall

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jjdunne
jjdunne

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.
Avatar of W122498

ASKER

Thanks
I think RMI would be a better alternative to CORBA