Examples of UserTransactionManager


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

Examples of com.atomikos.icatch.jta.UserTransactionManager

  @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

Examples of com.atomikos.icatch.jta.UserTransactionManager

   * @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

Examples of com.atomikos.icatch.jta.UserTransactionManager

  private ExceptionListener exceptionListener;

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

  }
View Full Code Here

Examples of com.atomikos.icatch.jta.UserTransactionManager

   

    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

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

Examples of com.atomikos.icatch.jta.UserTransactionManager

public class AtomikosTransactionController extends JTATransactionController {

  private UserTransactionManager utm;

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

Examples of com.atomikos.icatch.jta.UserTransactionManager

    }


    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
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.