Thread: TransSessions

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    3
    Rep 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?
  2. #2
  3. Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    Superior, CO, USA
    Posts
    2,418
    Rep Power
    1712
    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?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    3
    Rep 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.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    3
    Rep 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??

IMN logo majestic logo threadwatch logo seochat tools logo