[seam-commits] Seam SVN: r13125 - branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/transaction.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Jun 11 07:53:40 EDT 2010
Author: manaRH
Date: 2010-06-11 07:53:39 -0400 (Fri, 11 Jun 2010)
New Revision: 13125
Modified:
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/transaction/EjbSynchronizations.java
Log:
rollbacked the change JBPAPP-3764, JBPAPP-3713
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-06-10 23:51:03 UTC (rev 13124)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/transaction/EjbSynchronizations.java 2010-06-11 11:53:39 UTC (rev 13125)
@@ -34,7 +34,7 @@
*/
@Stateful
@Name("org.jboss.seam.transaction.synchronizations")
- at Scope(ScopeType.SESSION)
+ at Scope(ScopeType.EVENT)
@Install(precedence=FRAMEWORK, dependencies="org.jboss.seam.transaction.ejbTransaction")
@BypassInterceptors
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@@ -47,14 +47,12 @@
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");
@@ -63,7 +61,6 @@
committing.addLast(sync);
}
- @Override
public void afterCompletion(boolean success) throws EJBException, RemoteException
{
log.debug("afterCompletion");
@@ -84,43 +81,36 @@
}
}
- @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