Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 21st, 2013, 11:32 AM
jjco jjco is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 3 jjco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 41 sec
Reputation Power: 0
TransSessions

Hi,

I have a TransSession where the connection is hanging. Is there anyway to put a timeout on this transSession once it starts?

Reply With Quote
  #2  
Old February 21st, 2013, 01:32 PM
stdunbar's Avatar
stdunbar stdunbar is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 2,398 stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level)stdunbar User rank is General 10th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 18 h 15 m 45 sec
Reputation Power: 1660
Send a message via Yahoo to stdunbar Send a message via Google Talk to stdunbar
Quote:
Originally Posted by jjco
Hi,

I have a TransSession where the connection is hanging. Is there anyway to put a timeout on this transSession once it starts?


Since a TranSession class is neither a JSE nor JEE class how do you expect to get an answer? Can you provide, I don't know, any context?
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.

Reply With Quote
  #3  
Old February 22nd, 2013, 04:00 AM
jjco jjco is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 3 jjco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 41 sec
Reputation Power: 0
Hi,

Apologies I don't know too much about it myself. This is what I know about it.
java.lang.Object
extended bycom.versant.fund.FundSession
extended bycom.versant.trans.TransSession
So it extends FunsSession and implements the following interfaces,
ClassBuilder, Session, SessionWithDatabase.

public class TransSession
extends FundSession

The class embodies the Transparent Session concept and provides methods that allow application programs to obtain database functionality.

Application programs that conform with the ODMG 2.0 Java Binding Specifications and implement the ODMG Database/Transaction model can obtain the underlying Transparent Session to access VERSANT specific functionality not addressed in the ODMG 2.0 Java Binding.

So is there a timeout feature that exists for it is what I'm wondering.

Reply With Quote
  #4  
Old February 22nd, 2013, 04:06 AM
jjco jjco is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 3 jjco User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 41 sec
Reputation Power: 0
I think I could use something like this
setNetTimeout

public void setNetTimeout(int value)

It is used to specify the number of seconds before a database connection times out. A database connection will be terminated if an application receives no response to a request or if there is no communication from applicaion after the number of seconds specified as 'value'. It's a method in FundSession.

Do you think this would work for TranSession??

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > TransSessions

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap