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
What does enterprise javabeans module contain?
What do you understand by business logic?
What is j2ee stand for?
What is the mvc on struts?
Is tomcat a java ee?
What is javabeans component?
What is jaxr client?
What is cascade delete?
What is java gui?
How to invoke stored procedure in hibernate?
On which platform j2ee is based?
Describe the file types *.ear, * .jar and *.war?
What is business method?
What is mean by connection pooling?
What is declarative security ?