Package org.jboss.seam.transaction

Examples of org.jboss.seam.transaction.Synchronizations


   @GET
   @Path("/synchronizationsLookup")
   @Transactional
   public boolean synchronizationsLookup()
   {
      Synchronizations ejb = (Synchronizations) Component.getInstance("org.jboss.seam.transaction.synchronizations", ScopeType.EVENT);
      return ejb.isAwareOfContainerTransactions();
   }
View Full Code Here


  
   @GET
   @Path("/synchronizationsLookup")
   public boolean synchronizationsLookup()
   {
      Synchronizations ejb = (Synchronizations) Component.getInstance("org.jboss.seam.transaction.synchronizations", ScopeType.EVENT);
      return ejb.isAwareOfContainerTransactions();
   }
View Full Code Here

   public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
   {
      log.debug("committing Spring transaction");
      assertActive();
      boolean success = false;
      Synchronizations synchronizations = getSynchronizations();
      synchronizations.beforeTransactionCommit();
      try
      {
         getPlatformTransactionManagerRequired().commit(currentTransaction);
         success = true;
      }
      finally
      {
         currentTransaction = null;
         synchronizations.afterTransactionCommit(success);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.transaction.Synchronizations

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.