is it possible to create single instance of java class per
session in web application
Answer Posted / nirmal
The easiest way is to use RMI to start the app and check to
see if it's already running.
The basic structure is this:
The main method of your app checks the RMI registry to see
if the app is started. If so, exit.
Otherwise, the main creates an instance of the app (which
is a remote object) and registers it in the RMI registry.
The class' constructor creates the GUI and displays it.
Alternatively, you could create a "start" method that you
call via RMI to start the app.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Why is java considered dynamic?
What is java j2ee developer?
What is a plugin in java?
What is ejb module?
What is java api for xml processing (jaxp)?
What is single tier architecture in java?
What is container-managed persistence?
What do you understand by connector?
How will you explain load() and get() methods?
Describe action form?
How many java languages are there?
What is jetty in java?
Define orm and its working in j2ee?
What are the components of awt in java?
I’m new to WebLogic Does anyone knows how to Deploy Application using