Examples of TransactionService


Examples of org.apache.webbeans.spi.TransactionService

    }

    @Override
    protected UserTransaction createActualInstance(CreationalContext<UserTransaction> creationalContext)
    {
        TransactionService transactionService = getWebBeansContext().getService(TransactionService.class);
        if(transactionService != null)
        {
            return transactionService.getUserTransaction();
        }
       
        return null;
    }
View Full Code Here

Examples of org.apache.webbeans.spi.TransactionService

    }

    @Override
    protected UserTransaction createInstance(CreationalContext<UserTransaction> creationalContext)
    {
        TransactionService transactionService = getWebBeansContext().getService(TransactionService.class);
        if(transactionService != null)
        {
            UserTransaction t = transactionService.getUserTransaction();
            return createProxyWrapper(t, creationalContext);
        }
       
        return null;
    }
View Full Code Here

Examples of org.apache.webbeans.spi.TransactionService

                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        if (observer instanceof OwbObserverMethod)
                        {
View Full Code Here

Examples of org.apache.webbeans.spi.TransactionService

                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        if (observer instanceof OwbObserverMethod)
                        {
View Full Code Here

Examples of org.apache.webbeans.spi.TransactionService

                TransactionPhase phase = observer.getTransactionPhase();
               
                if(phase != null && !phase.equals(TransactionPhase.IN_PROGRESS))
                {
                    TransactionService transactionService = webBeansContext.getService(TransactionService.class);
                    if(transactionService != null)
                    {
                        transactionService.registerTransactionSynchronization(phase, observer, event);
                    }
                    else
                    {
                        if (observer instanceof OwbObserverMethod)
                        {
View Full Code Here

Examples of org.exoplatform.services.transaction.TransactionService

{

   @Override
   public WorkspaceStorageCache getCacheImpl() throws Exception
   {
      TransactionService transactionService =
         (TransactionService)container.getComponentInstanceOfType(TransactionService.class);

      ArrayList<SimpleParameterEntry> list = new ArrayList<SimpleParameterEntry>();
      list.add(new SimpleParameterEntry(JBossCacheWorkspaceStorageCache.JBOSSCACHE_CONFIG,
         "jar:/conf/standalone/test-jbosscache-config.xml"));
View Full Code Here

Examples of org.exoplatform.services.transaction.TransactionService

      assertIDGenerator(service);
   }

   private void assertConfiguration(DatabaseService service) throws Exception
   {
      TransactionService txservice = service.getTransactionService();
      assertTrue(service != null);
      // TransactionManager tm = txservice.getTransactionManager() ;
      UserTransaction utx = txservice.getUserTransaction();
      Connection conn = service.getConnection();
      Statement s = null;
      utx.begin();
      try
      {
View Full Code Here

Examples of org.exoplatform.services.transaction.TransactionService

      assertIDGenerator(service);
   }

   private void assertConfiguration(DatabaseService service) throws Exception
   {
      TransactionService txservice = service.getTransactionService();
      assertTrue(service != null);
      // TransactionManager tm = txservice.getTransactionManager() ;
      UserTransaction utx = txservice.getUserTransaction();
      Connection conn = service.getConnection();
      Statement s = null;
      utx.begin();
      try
      {
View Full Code Here

Examples of org.exoplatform.services.transaction.TransactionService

{

   @Override
   public WorkspaceStorageCache getCacheImpl() throws Exception
   {
      TransactionService transactionService =
         (TransactionService)container.getComponentInstanceOfType(TransactionService.class);

      ArrayList<SimpleParameterEntry> list = new ArrayList<SimpleParameterEntry>();
      list.add(new SimpleParameterEntry(JBossCacheWorkspaceStorageCache.JBOSSCACHE_CONFIG,
         "jar:/conf/standalone/test-jbosscache-config.xml"));
View Full Code Here

Examples of org.exoplatform.services.transaction.TransactionService

public class TestJBossCacheWorkspaceStorageCacheInClusterMode extends TestWorkspaceStorageCacheInClusterMode<JBossCacheWorkspaceStorageCache>
{

   public JBossCacheWorkspaceStorageCache getCacheImpl() throws Exception
   {
      TransactionService transactionService =
         (TransactionService)container.getComponentInstanceOfType(TransactionService.class);

      ArrayList<SimpleParameterEntry> list = new ArrayList<SimpleParameterEntry>();
      list.add(new SimpleParameterEntry(JBossCacheWorkspaceStorageCache.JBOSSCACHE_CONFIG,
         "jar:/conf/standalone/cluster/test-jbosscache-data-no-mux.xml"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.