Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > timeout problem with statefull session bean

Thread Tools

timeout problem with statefull session bean

Posts: n/a
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,
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
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
a statefull ejb doesn't get the timeout. Tiwkiz Java 1 01-11-2007 11:01 PM
Dadatabsae Connection problem with Statefull Sessoin Bean design Java 1 01-10-2007 02:24 AM
disable session timeout for session bean June Java 6 12-24-2006 05:32 PM
EJB Transaction (Session Bean - Entitiy Bean) X3 Java 0 10-01-2004 07:41 AM
can a session bean return a local entity bean object? David Thielen Java 2 09-12-2003 07:45 AM