com.onewebsql.util.jta
Class GetUserTransactionOp

java.lang.Object
  extended by com.onewebsql.util.jta.GetUserTransactionOp
All Implemented Interfaces:
JndiOp<UserTransaction>

public class GetUserTransactionOp
extends Object
implements JndiOp<UserTransaction>

Retrieves from JNDI a UserTransaction object and returns it.


Field Summary
static GetUserTransactionOp INSTANCE
          Default instance of this class.
static String USER_TRANSACTION_JNDI_NAME
          JNDI key where UserTransaction object is stored
 
Constructor Summary
GetUserTransactionOp()
           
 
Method Summary
 UserTransaction invoke(Context ctx)
          Invokes an operation which needs access to JNDI context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final GetUserTransactionOp INSTANCE
Default instance of this class.


USER_TRANSACTION_JNDI_NAME

public static final String USER_TRANSACTION_JNDI_NAME
JNDI key where UserTransaction object is stored

See Also:
Constant Field Values
Constructor Detail

GetUserTransactionOp

public GetUserTransactionOp()
Method Detail

invoke

public UserTransaction invoke(Context ctx)
                       throws NamingException
Description copied from interface: JndiOp
Invokes an operation which needs access to JNDI context.

Specified by:
invoke in interface JndiOp<UserTransaction>
Parameters:
ctx - JNDI context
Returns:
result of the operation
Throws:
NamingException - when an error happens


Copyright © 2011-2013 e-point SA. All Rights Reserved.