public class TuxAppContextUtil extends java.lang.Object implements TuxATMIConstants
EB_TA_CLIENTID_MAXLEN, EB_TA_COMMAND_MAXLEN, EB_TA_EVENT_EXPR_MAXLEN, EB_TA_EVENT_FILTER_BINARY_MAXLEN, EB_TA_EVENT_FILTER_MAXLEN, EB_TA_EVENTNAME_MAXLEN, EB_TA_QNAME_MAXLEN, EB_TA_QSPACE_MAXLEN, EB_TA_USERLOG_MAXLEN, FCONCAT, FJOIN, FOJOIN, FUPDATE, MAXBLKTIME, MAXTIDENT, RESERVED_BIT1, RESERVED_BIT3, RESERVED_BIT4, RESERVED_BIT5, TM_PRIORANGE, TMSTYPELEN, TMTYPELEN, TP_CMT_COMPLETE, TP_CMT_LOGGED, TPABSOLUTE, TPACK, TPACK_INTL, TPADVADMINSVC, TPBLK__MASK, TPBLK_ALL, TPBLK_MICROSECOND, TPBLK_MILLISECOND, TPBLK_NEXT, TPBLK_SECOND, TPCONV, TPCONVMAXSTR, TPEVPERSIST, TPEVQUEUE, TPEVRESERVED1, TPEVRESERVED2, TPEVRESERVED3, TPEVSERVICE, TPEVTRAN, TPEXIT, TPFAIL, TPGETANY, TPMULTICONTEXTS, TPNOBLOCK, TPNOCHANGE, TPNOCOPY, TPNOFLAGS, TPNOREPLY, TPNOTIME, TPNOTRAN, TPQBEFOREMSGID, TPQCORRID, TPQDELIVERYQOS, TPQEXPTIME_ABS, TPQEXPTIME_NONE, TPQEXPTIME_REL, TPQFAILUREQ, TPQGETBYCORRID, TPQGETBYCORRIDOLD, TPQGETBYMSGID, TPQGETBYMSGIDOLD, TPQMSGID, TPQPEEK, TPQPRIORITY, TPQQOSDEFAULTPERSIST, TPQQOSNONPERSISTENT, TPQQOSPERSISTENT, TPQREPLYQ, TPQREPLYQOS, TPQTIME_ABS, TPQTIME_REL, TPQTOP, TPQWAIT, TPRECVONLY, TPSA_FASTPATH, TPSA_PROTECTED, TPSENDONLY, TPSIGRSTRT, TPSUCCESS, TPTRAN, TPU_DIP, TPU_IGN, TPU_MASK, TPU_SIG, TPU_THREAD, TPXMLALLOWEMPTY, TPXPARSALWAYS, TPXPARSCACHERESET, TPXPARSCACHESET, TPXPARSCONFATAL, TPXPARSDOSCH, TPXPARSEREFN, TPXPARSNEVER, TPXPARSNOEXIT, TPXPARSNOINCWS, TPXPARSNSPACE, TPXPARSSCHFULL, TPXPARSSTDURI, TPXPARSUSECACHEDGRAM, XATMI_SERVICE_NAME_LENGTH
Constructor and Description |
---|
TuxAppContextUtil() |
Modifier and Type | Method and Description |
---|---|
static TuxAppContext |
getTuxAppContext()
getTuxAppContext() is called by Java application thread
to retrieve the current attached Tuxedo application Java context object. |
static int |
tpappthrinit(TPINIT tpthrinfo)
tpappthrinit can be used to create a Tuxedo application context in a Java
server application thread.
|
static int |
tpappthrterm()
tpappthrterm removes the current Tuxedo application context and set current
application context to a NULL context.
|
static TPCONTEXT |
tpgetctxt(long flags)
tpgetctxt retrieves an identifier object TPCONTEXT that represents
the current application context.
|
static int |
tpsetctxt(TPCONTEXT ctxt,
long flags)
tpsetctxt() defines the context in which the current thread operates.
|
public static final TuxAppContext getTuxAppContext() throws TuxATMITPException
getTuxAppContext()
is called by Java application thread
to retrieve the current attached Tuxedo application Java context object.getTuxAppContext()
returns TuxAppContext.TuxException
- Upon failure getTuxAppContext
throws TuxATMITPExceptionTuxATMITPException
public static final int tpsetctxt(TPCONTEXT ctxt, long flags) throws TuxATMITPException
ctxt
- A TPCONTEXT object.flags
- Reserved for future use and must be set to 0.TuxATMITPException
- Upon failure, tpsetctxt() sets tperrno to one of the
following values:public static final TPCONTEXT tpgetctxt(long flags) throws TuxATMITPException
flags
- It is reserved for future use and must be set to 0.TuxATMITPException
- Upon failure, tpgetctxt throws TuxATMITPException exception.
TuxATMITPException.gettperrno can be used to retrieve
the real error condition as the following values:public static final int tpappthrinit(TPINIT tpthrinfo) throws TuxATMITPException
tpthrinfo
- It is a TPINIT object used to pass user information
to tpappthrinit().TuxATMITPException
- Upon failure, tpappthrinit() throws TuxATMITPException,
and TuxATMITPException.gettperrno() can be used to get
the real error condition. public static final int tpappthrterm() throws TuxATMITPException
TuxATMITPException
- Upon failure, tpappthrterm() throws TuxATMITPException.
TuxATMITPException.gettperrno() can be used to retreive
real error condition as one of the following values: