Package com.atomikos.icatch.jta

Examples of com.atomikos.icatch.jta.UserTransactionManager


  private String clientID;

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


  @Bean(initMethod = "init", destroyMethod = "close")
  @ConditionalOnMissingBean
  public UserTransactionManager atomikosTransactionManager(
      UserTransactionService userTransactionService) throws Exception {
    UserTransactionManager manager = new UserTransactionManager();
    manager.setStartupTransactionService(false);
    manager.setForceShutdown(true);
    return manager;
  }
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 ) {
          Configuration
                  .logWarning ( "Error in getting transaction status", e );
View Full Code Here

  private ExceptionListener exceptionListener;

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

  }
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 clientID;

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

public class AtomikosTransactionController extends JTATransactionController {

  private UserTransactionManager utm;

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

    }


    public static void main(final String[] args) throws Exception {
        // create transaction manager,reuse it.
        final TransactionManager tm = new UserTransactionManager();

        final String topic = "meta-test";
        final XAMessageSessionFactory xasf = getXAMessageSessionFactory();
        // create XA producer,it should be used as a singleton instance.
        XAMessageProducer xaMessageProducer = xasf.createXAProducer();
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.