|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.4) Part Number E13941-04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.transaction.ClientTxHelper
weblogic.transaction.TxHelper
public class TxHelper
This class is a convenience wrapper for gaining access to objects and resources related to the transaction manager, on both client and server processes, via static methods. Some of these methods are deprecated and TransactionHelper should be used instead.
Constructor Summary | |
---|---|
TxHelper()
|
Method Summary | |
---|---|
static Xid |
createXid(byte[] aGlobalTransactionId,
byte[] aBranchQualifier)
Create an Xid object, assuming global transaction identifier is in internal format of weblogic's transaction manager. |
static Xid |
createXid(int aFormatId,
byte[] aGlobalTransactionId,
byte[] aBranchQualifier)
Create an Xid object, given its public attributes. |
static InterposedTransactionManager |
getClientInterposedTransactionManager(Context initialContext,
String serverName)
Client-side gateway implementors should use this method to obtain the InterposedTransactionManager interface of the Client
transaction manager that corresponds to a particular server's
transaction manager to import foreign transactions into WLS. |
static ClientTransactionManager |
getClientTransactionManager()
Deprecated. |
static InterposedTransactionManager |
getServerInterposedTransactionManager()
Server-side gateway implementors should use this method to obtain the InterposedTransactionManager interface of the local
singleton Server transaction manager to import foreign transactions
into WLS. |
static Transaction |
getTransaction()
Deprecated. |
static UserTransaction |
getUserTransaction()
Deprecated. |
static String |
status2String(int status)
Translates javax.transaction.Status constants to English strings. |
Methods inherited from class weblogic.transaction.ClientTxHelper |
---|
getTransactionManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TxHelper()
Method Detail |
---|
public static Transaction getTransaction()
TransactionHelper.getTransaction()
public static UserTransaction getUserTransaction()
TransactionHelper.getUserTransaction()
public static ClientTransactionManager getClientTransactionManager()
TransactionHelper.getTransactionManager()
public static InterposedTransactionManager getServerInterposedTransactionManager()
InterposedTransactionManager
interface of the local
singleton Server transaction manager to import foreign transactions
into WLS. This local singleton Server transaction manager will
also internally coordinate all foreign transactions imported
through it.
InterposedTransactionManager
public static InterposedTransactionManager getClientInterposedTransactionManager(Context initialContext, String serverName)
InterposedTransactionManager
interface of the Client
transaction manager that corresponds to a particular server's
transaction manager to import foreign transactions into WLS.
Foreign transactions imported into WLS through this Client
transaction manager will be coordinated by the specified server
internally.
If the initial context is obtained from a non-clustered server, then the server name specified should refer to the same server. If the initial context is obtained from a cluster, then the server name specified should refer to a server within the cluster.
Note that this method returns
Note that even though it is possible to cast the
null
on any errors.
If clients are interested in getting the exceptions thrown when
obtaining the InterposedTransactionManager
, they could
perform JNDI lookup for the following path from the initial context
directly:
weblogic.transaction.coordinators.TransactionManager
instance obtained from
getTransactionManager
to a
InterposedTransactionManager
instance, but doing so is
strongly discouraged. This is because the Client transaction
manager singleton instance returned by
getTransactionManager
may not be associated with any
server, and cannot import transactions.
serverName
- The name of the server
InterposedTransactionManager
public static String status2String(int status)
javax.transaction.Status
constants to English strings.
public static Xid createXid(int aFormatId, byte[] aGlobalTransactionId, byte[] aBranchQualifier)
aFormatId
- Format identifieraGlobalTransactionId
- Global transation identifieraBranchQualifier
- Branch qualifier
public static Xid createXid(byte[] aGlobalTransactionId, byte[] aBranchQualifier)
aGlobalTransactionId
- Global transation identifieraBranchQualifier
- Branch qualifier (optional)
|
Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.4) Part Number E13941-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |