Package com.atomikos.icatch.jta

Examples of com.atomikos.icatch.jta.UserTransactionManager


    * @see org.exoplatform.services.transaction.impl.AbstractTransactionService#findTransactionManager()
    */
   @Override
   protected TransactionManager findTransactionManager() throws Exception
   {
      UserTransactionManager tm = new UserTransactionManager();
      tm.init();
      return tm;
   }
View Full Code Here


      if (isTMInitialized())
      {
         TransactionManager tm = getTransactionManager();
         if (tm instanceof UserTransactionManager)
         {
            UserTransactionManager utm = (UserTransactionManager)tm;
            utm.close();
         }
      }
   }
View Full Code Here

 
  public static void initTxManager() {
    try {
      if (txManager == null) {
        log.info("Starting Atomikos Transaction Manager " + Configuration.getVersion());
        txManager = new UserTransactionManager();
      }
      txManager.init();
    } catch (SystemException e) {
      log.error("Error in initializing Atomikos Transaction Manager", e);
    }
View Full Code Here

   

    retrieveDestinationIfNecessary();
    retrieveReplyToDestinationIfNecessary();
   
    UserTransactionManager tm = new UserTransactionManager ();
      try {
          if ( tm.getStatus () != Status.STATUS_ACTIVE )
              throw new JMSException (
                      "This method requires an active transaction!" );
      } catch ( SystemException e ) {
          Configuration
                  .logWarning ( this +": error in getting transaction status", e );
View Full Code Here

  private String subscriberName;

  protected MessageConsumerSession ( MessageConsumerSessionProperties properties )
  {
    this.properties = properties;
    tm = new UserTransactionManager();
    noLocal = false;
    subscriberName = null;
  }
View Full Code Here

  private ExceptionListener exceptionListener;

  protected MessageConsumerSession()
  {
    timeout = DEFAULT_TIMEOUT;
    tm = new UserTransactionManager();

  }
View Full Code Here

   * @throws JMSException
   *             On failures.
   */
  public void sendMessage ( Message message ) throws JMSException
  {
      UserTransactionManager tm = new UserTransactionManager ();
      try {
          if ( tm.getStatus () != Status.STATUS_ACTIVE )
              throw new JMSException (
                      "This method requires an active transaction!" );
      } catch ( SystemException e ) {
          LOGGER
                  .logWarning ( "Error in getting transaction status", e );
View Full Code Here

  private UserTransactionImp userTransaction;

  public void start(BundleContext context) throws Exception {
    try {
      // TransactionManager
      utm = new UserTransactionManager();
      // TODO: need to check the possible values for "osgi.jndi.service.name"
      utm.init();
      Dictionary<String, String> tmProps = new Hashtable<String, String>();
      tmProps.put("osgi.jndi.service.name", "AtomikosV3");
      utmRegistration = context.registerService(TransactionManager.class.getName(), utm, tmProps);
View Full Code Here

        atomikosDataSourceBean.setUniqueResourceName("xa.h2");
        registry.put("atomikos.dataSource", atomikosDataSourceBean);


        // Atomikos setup
        userTransactionManager = new UserTransactionManager();
        userTransactionManager.setForceShutdown(false);
        userTransactionManager.init();

        UserTransactionImp userTransactionImp = new UserTransactionImp();
        userTransactionImp.setTransactionTimeout(300);
View Full Code Here

  private UserTransactionManager utm;
 
  public TransactionManagerLookup()
  {
    utm = new UserTransactionManager();
  }
View Full Code Here

TOP

Related Classes of com.atomikos.icatch.jta.UserTransactionManager

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.