February 21st, 2013, 12:32 PM
I have a TransSession where the connection is hanging. Is there anyway to put a timeout on this transSession once it starts?
February 21st, 2013, 02:32 PM
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?
Originally Posted by jjco
February 22nd, 2013, 05:00 AM
Apologies I don't know too much about it myself. This is what I know about it.
So it extends FunsSession and implements the following interfaces,
ClassBuilder, Session, SessionWithDatabase.
public class TransSession
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.
February 22nd, 2013, 05:06 AM
I think I could use something like this
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??