|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.core.transaction.JtaTransactionPolicy
org.apache.openejb.core.transaction.TxMandatory
public class TxMandatory
17.6.2.5 Mandatory
The Container must invoke an enterprise Bean method whose transaction attribute is set to Mandatory in a client's transaction context. The client is required to call with a transaction context. * If the client calls with a transaction context, the container invokes the enterprise Bean's method in the client's transaction context. * If the client calls without a transaction context, the Container throws the javax.transaction.TransactionRequiredException exception if the client is a remote client, or the javax.ejb.TransactionRequiredLocalException if the client is a local client.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.openejb.core.transaction.TransactionPolicy |
---|
TransactionPolicy.TransactionSynchronization |
Field Summary |
---|
Fields inherited from class org.apache.openejb.core.transaction.JtaTransactionPolicy |
---|
logger, transactionManager, transactionType, txLogger |
Constructor Summary | |
---|---|
TxMandatory(javax.transaction.TransactionManager transactionManager)
|
Method Summary | |
---|---|
void |
commit()
Commits or rolls back this TransactionPolicy. |
javax.transaction.Transaction |
getCurrentTransaction()
|
boolean |
isClientTransaction()
Is this policy running in an inhreited transaction? Some TransactionTypes, such as Required or Supported, use the caller's transaction instead of starting a new transaction. |
boolean |
isNewTransaction()
Is this a new transaction and not an inhreited transaction or no transaction? Some TransactionTypes, such as Required or Supported, use the caller's transaction instead of starting a new transaction. |
Methods inherited from class org.apache.openejb.core.transaction.JtaTransactionPolicy |
---|
beginTransaction, completeTransaction, enlistResource, fireNonTransactionalCompletion, getResource, getTransaction, getTransactionType, isRollbackOnly, isTransactionActive, putResource, registerSynchronization, removeResource, resumeTransaction, rollbackTransaction, setRollbackOnly, setRollbackOnly, suspendTransaction, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TxMandatory(javax.transaction.TransactionManager transactionManager) throws SystemException, ApplicationException
SystemException
ApplicationException
Method Detail |
---|
public boolean isNewTransaction()
TransactionPolicy
public boolean isClientTransaction()
TransactionPolicy
public javax.transaction.Transaction getCurrentTransaction()
getCurrentTransaction
in class JtaTransactionPolicy
public void commit()
TransactionPolicy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |