|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omg.CORBA.LocalObject com.sssw.jbroker.orb.LocalityConstrainedObject com.sssw.jts.api.TransactionService
The jBrokerTM TransactionService. Provides both OTS TransactionServices and JTA TransactionManagent implementations.
Field Summary | |
static boolean |
_dbgex
|
static boolean |
_debug
|
static boolean |
_dump
|
static String[] |
ALL_PROPS
|
static String[] |
PERSISTENT_PROPS
|
static String |
PROPERTY_DEBUG_MODES
(String) Debug modes (default=""). |
static String |
PROPERTY_LOG_DIRECTORY
(String) Directory name for TransactionManager Log files. |
static String |
PROPERTY_LOG_FILEMAXSIZE
(int) Maximum size of each Log file in kilo bytes. |
static String |
PROPERTY_LOG_FILEPREALLOC
(boolean) Preallocate Log files when creating. |
static String |
PROPERTY_LOG_FLUSH_DONE
(boolean) Flush log after every write (default=false). |
static String |
PROPERTY_LOG_TYPE
(String) Logging mechanism type oneof: File, NativeFile, Database. |
static String |
PROPERTY_RECOVERY_RESOURCE_RETRY_MINS
(int) Resource recovery retry time limit in minutes (default=15). |
static String |
PROPERTY_RECOVERY_WORKER_THREADS
(int) Number of Recovery worker threads (default=3). |
static String |
PROPERTY_TRANSACTION_SERVICE_ID
(String) Transaction Service ID. |
static String |
PROPERTY_TRANSACTION_TIMEOUT
(int) Default transaction timeout in seconds (default=60). |
Constructor Summary | |
TransactionService()
|
Method Summary | |
Enumeration |
getRecoveryTransactions()
Get an enumeration of transactions that are pending recovery. |
Current |
getTransactionCurrent()
Get the OTS Current object. |
TransactionFactory |
getTransactionFactory()
Get the OTS TransactionFactory object. |
TransactionManager |
getTransactionManager()
Get the JTA TransactionManager object. |
UserTransaction |
getUserTransaction()
Get the JTA UserTransaction object. |
void |
initialize(ORB orb,
ThreadContext threadContext,
Properties props)
Initialize the Transaction Service. |
void |
receivedReply(int requestId,
InputStream contextIS,
Exception ex)
A reply has been received. |
void |
receivedRequest(int requestId,
InputStream contextIS)
A request has been received. |
void |
recover(XAResourceHandleMapper mapper,
boolean coldstart,
RecoveryListener asynchCallback)
Start Transaction Manager recovery. |
void |
sendingReply(int requestId,
OutputStream contextIS)
A reply is about to be sent. |
void |
sendingRequest(int requestId,
OutputStream contextOS)
A request is about to be sent. |
Methods inherited from class com.sssw.jbroker.orb.LocalityConstrainedObject |
_get_delegate, _ids, equals, hashCode, toString |
Methods inherited from class org.omg.CORBA.LocalObject |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static boolean _debug
public static boolean _dbgex
public static boolean _dump
public static final String PROPERTY_TRANSACTION_SERVICE_ID
public static final String PROPERTY_TRANSACTION_TIMEOUT
public static final String PROPERTY_LOG_DIRECTORY
public static final String PROPERTY_LOG_TYPE
public static final String PROPERTY_LOG_FILEMAXSIZE
public static final String PROPERTY_LOG_FILEPREALLOC
public static final String PROPERTY_LOG_FLUSH_DONE
public static final String PROPERTY_RECOVERY_WORKER_THREADS
public static final String PROPERTY_RECOVERY_RESOURCE_RETRY_MINS
public static final String PROPERTY_DEBUG_MODES
public static final String[] ALL_PROPS
public static final String[] PERSISTENT_PROPS
Constructor Detail |
public TransactionService()
Method Detail |
public void initialize(ORB orb, ThreadContext threadContext, Properties props)
TransactionService
initialize
in interface TransactionService
orb
- the ORB instancethreadContext
- provides fast access to thread level stacking
of transaction contextsprops
- if the Transaction Service is initialized by specifying a
txService.class property in the transactions.properties file,
then all the properties in the file are passed. Otherwise it is
null.public void sendingRequest(int requestId, OutputStream contextOS)
TransactionService
sendingRequest
in interface TransactionService
public void receivedReply(int requestId, InputStream contextIS, Exception ex)
TransactionService
receivedReply
in interface TransactionService
public void receivedRequest(int requestId, InputStream contextIS)
TransactionService
receivedRequest
in interface TransactionService
public void sendingReply(int requestId, OutputStream contextIS)
TransactionService
sendingReply
in interface TransactionService
public TransactionManager getTransactionManager()
public UserTransaction getUserTransaction()
public TransactionFactory getTransactionFactory()
public Current getTransactionCurrent()
public void recover(XAResourceHandleMapper mapper, boolean coldstart, RecoveryListener asynchCallback) throws com.sssw.jts.util.LogException
mapper
- the handle to XAResource mapping callbackcoldstart
- if true log files are deleted without any transaction recovey,
otherwise, all non-completed transactions in the log are recovered.asynchCallback
- if null recovery is synchronous. Otherwise, recovery
is done asynchronous and the asynchCallback.recoveryCompleted() method is
called when the recovery has completed.
com.sssw.jts.util.LogException
- thrown when an error occurs
accesing the log file.public Enumeration getRecoveryTransactions()
|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |