[seam-commits] Seam SVN: r12746 - branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/transaction.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue May 18 02:56:51 EDT 2010
Author: manaRH
Date: 2010-05-18 02:56:50 -0400 (Tue, 18 May 2010)
New Revision: 12746
Modified:
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/transaction/EjbSynchronizations.java
Log:
JBPAPP-3764, JBPAPP-3713 - changed scope to SESSION
Modified: branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/transaction/EjbSynchronizations.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/transaction/EjbSynchronizations.java 2010-05-17 23:01:09 UTC (rev 12745)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/transaction/EjbSynchronizations.java 2010-05-18 06:56:50 UTC (rev 12746)
@@ -34,7 +34,7 @@
*/
@Stateful
@Name("org.jboss.seam.transaction.synchronizations")
- at Scope(ScopeType.EVENT)
+ at Scope(ScopeType.SESSION)
@Install(precedence=FRAMEWORK, dependencies="org.jboss.seam.transaction.ejbTransaction")
@BypassInterceptors
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@@ -47,12 +47,14 @@
protected LinkedList<SynchronizationRegistry> synchronizations = new LinkedList<SynchronizationRegistry>();
protected LinkedList<SynchronizationRegistry> committing = new LinkedList<SynchronizationRegistry>();
+ @Override
public void afterBegin()
{
log.debug("afterBegin");
synchronizations.addLast( new SynchronizationRegistry() );
}
+ @Override
public void beforeCompletion() throws EJBException, RemoteException
{
log.debug("beforeCompletion");
@@ -61,6 +63,7 @@
committing.addLast(sync);
}
+ @Override
public void afterCompletion(boolean success) throws EJBException, RemoteException
{
log.debug("afterCompletion");
@@ -81,36 +84,43 @@
}
}
+ @Override
public boolean isAwareOfContainerTransactions()
{
return true;
}
+ @Override
public void afterTransactionBegin()
{
//noop, let JTA notify us
}
+ @Override
public void afterTransactionCommit(boolean success)
{
//noop, let JTA notify us
}
+ @Override
public void afterTransactionRollback()
{
//noop, let JTA notify us
}
+ @Override
public void beforeTransactionCommit()
{
//noop, let JTA notify us
}
+ @Override
public void registerSynchronization(Synchronization sync)
{
synchronizations.getLast().registerSynchronization(sync);
}
+ @Override
@Remove
public void destroy() {}
More information about the seam-commits
mailing list