|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionFactory
Strategy interface for creating JTA javax.transaction.Transaction
objects based on specified transactional characteristics.
The default implementation, SimpleTransactionFactory
, simply
wraps a standard JTA javax.transaction.TransactionManager
.
This strategy interface allows for more sophisticated implementations
that adapt to vendor-specific JTA extensions.
javax.transaction.TransactionManager#getTransaction()
,
SimpleTransactionFactory
,
JtaTransactionManager
Method Summary | |
---|---|
Transaction |
createTransaction(java.lang.String name,
int timeout)
Create an active Transaction object based on the given name and timeout. |
boolean |
supportsResourceAdapterManagedTransactions()
Determine whether the underlying transaction manager supports XA transactions managed by a resource adapter (i.e. |
Method Detail |
---|
Transaction createTransaction(java.lang.String name, int timeout) throws NotSupportedException, SystemException
name
- the transaction name (may be null
)timeout
- the transaction timeout (may be -1 for the default timeout)
null
)
NotSupportedException
- if the transaction manager does not support
a transaction of the specified type
SystemException
- if the transaction manager failed to create the
transactionboolean supportsResourceAdapterManagedTransactions()
Typically false
. Checked by
AbstractMessageEndpointFactory
in order to differentiate between invalid configuration and valid
ResourceAdapter-managed transactions.
javax.resource.spi.ResourceAdapter#endpointActivation
,
javax.resource.spi.endpoint.MessageEndpointFactory#isDeliveryTransacted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |