Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > a statefull ejb doesn't get the timeout.

Thread Tools

a statefull ejb doesn't get the timeout.

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


Reply With Quote
Daniel Dyer
Posts: n/a
On Thu, 11 Jan 2007 20:38:32 -0000, Tiwkiz <(E-Mail Removed)> wrote:

> 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.


Daniel Dyer - Evolutionary Algorithm Framework for Java
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
Possible to generate "ejb-jar.xml" from EJB class (source)? "ejb-jar.xml" appserver independent? Raymond Schanks Java 0 08-03-2010 08:21 AM
Dadatabsae Connection problem with Statefull Sessoin Bean design Java 1 01-10-2007 02:24 AM
timeout problem with statefull session bean Nathac Java 0 12-22-2006 11:34 AM
looking for statefull snprintf dimka C Programming 20 08-20-2006 01:09 PM
Static Method/stateless/statefull/how to :-) MaxMax C++ 4 10-25-2005 08:10 AM