timeout problem with statefull session bean

N

Nathac

Recently I am thining of migrating current system to j2ee.

I am developing the system similar to domcument managing system.
With the current fat java client, application works like this.

1. login to the server
2. search on metadata server
3. download a particular document

note: once you logged in, the session will be kept alive until user logged
out or
connection to the server is cut somehow.

So i am thining to make two statefull session beans; searchmanagerbean,
downloadmanagerbean.
however, problems I found is that you can set timeout for the satefull
session bean. What if you set the length
of timeout to be 30 seconds and you search with searchmanaberbean and use
downloadmanagerbean
to download the documents but took more than 40 seconds? The searchmanager
is lost in timeout?
(because I used searchmanagerbean first but didn't use the session bean when
I am downloading the document which took more
than 30 second ).

If so I want find out if there is a way to keep this statefull ejb alive as
long as the client is logged in but
becomes passivate when client is logged out or cut from the server
connection.( currently we use the rmi unrefernce()
however, unrefence is not an option with EJB.)

Thanks in advance.
NA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top