a statefull ejb doesn't get the timeout.

T

Tiwkiz

We've been trying to find a solution for having a statefull ejb doesn't get
the timeout.

We are going to have a universal session table in database. Every 2,3
seconds( this period of time is shorter than the timeout set in application
server ) ejb is going to update the session updated time in order to prove
the session existed a couple of seconds ago. If an user is disconnected from
logout or network problem, the server knows the session wasn't updated and
clean this session.

This doesn't sound good but only solution we found so far. setting the big
number timeout value doesn't work because if the user is disconnected from
network cable problem there is no way for the server to know.

If there is a better way please let me know.

T
 
D

Daniel Dyer

We've been trying to find a solution for having a statefull ejb doesn't
get
the timeout.

The EJB Timer Service cannot be used with stateful session beans, only
with entity beans and stateless session beans.

Dan.
 

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,982
Messages
2,570,189
Members
46,736
Latest member
zacharyharris

Latest Threads

Top