-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Session no longer connected
PostPosted: Wed Apr 04, 2007 11:14 pm 
Newbie

Joined: Thu Nov 17, 2005 5:50 am
Posts: 6
We have an app with a single long lived session.

When we want to do something, we

- get the session instance
- check if the session isConnected and isOpen
- beginTransaction
- do stuff
- commit or rollback

Intermittently ( and very infrequently ) the isConnected check fails.

Why would a long running session suddenly become disconnected?

Is it actually appropriate to check that the session is connected before we start a transaction?

TIA
Perryn


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 04, 2007 11:30 pm 
Newbie

Joined: Mon Oct 23, 2006 11:03 pm
Posts: 17
If you ignore the false isConnected() does the session
reconnect when you actually try to do something?

I'm no expert, but I was under the impression that the underlying
DB connection could get closed (timeout, for instance) and the
session manager will just reconnect next time you ask for
something.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.