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 do you understand by actionform?
Can I run seam in a j2ee environment?
Is java ee and j2ee same?
J2ee is a container centric architecture. Explain.
i want test pattern of zylog company and some examples also
What is java j2ee developer?
Why java is interpreted language?
What is repaint in java?
What is event and listener in java?
What is platform independent in java?
What does java awt stand for?
What is java secure socket extension (jsse)?
What is j2ee architecture?
What software is needed for java programming?
What are the components of the java platform?