|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.transaction.SessionSynchronizationListener
public class SessionSynchronizationListener
This listener will be notified by the transaction manager and will call methods on the bean.
Field Summary | |
---|---|
private boolean |
ready
This listener is ready to receive event from the transaction manager. |
private javax.ejb.SessionSynchronization |
synchronizedBean
Bean on which synchonization will be done. |
Constructor Summary | |
---|---|
SessionSynchronizationListener(javax.ejb.SessionSynchronization synchronizedBean)
Creates a listener which will act on the given bean. |
Method Summary | |
---|---|
void |
afterCompletion(int status)
This method is called by the transaction manager after the transaction is committed or rolled back. |
void |
beforeCompletion()
4.3.11 Interceptors for Session Beans. For stateful session beans that implement the SessionSynchronization interface, afterBegin occurs before any AroundInvoke method invocation, and beforeCompletion after all AroundInvoke invocations are finished. The beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. |
void |
inTX()
Sets the ready state to false as the transaction is in progress. |
boolean |
isReady()
Gets the ready state of this listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.ejb.SessionSynchronization synchronizedBean
private boolean ready
Constructor Detail |
---|
public SessionSynchronizationListener(javax.ejb.SessionSynchronization synchronizedBean)
synchronizedBean
- bean on which call synchronization methods.Method Detail |
---|
public void beforeCompletion()
beforeCompletion
in interface javax.transaction.Synchronization
public void afterCompletion(int status)
afterCompletion
in interface javax.transaction.Synchronization
status
- The status of the transaction completion.public boolean isReady()
public void inTX()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |