Examples of Jotm


Examples of org.objectweb.jotm.Jotm

            return;
        }

        // Create Transaction manager
        try {
            this.jotm = new Jotm(true, false);
        } catch (NamingException e) {
            throw new EZBComponentException("Cannot init JOTM object", e);
        }

        // Set transaction timeout
View Full Code Here

Examples of org.objectweb.jotm.Jotm

    // If none found, create new local JOTM instance.
    if (this.jotmCurrent == null) {
      // Only for use within the current Spring context:
      // local, not bound to registry.
      this.jotm = new Jotm(true, false);
      this.jotmCurrent = Current.getCurrent();
    }
  }
View Full Code Here

Examples of org.objectweb.jotm.Jotm

    // If none found, create new local JOTM instance.
    if (this.jotmCurrent == null) {
      // Only for use within the current Spring context:
      // local, not bound to registry.
      this.jotm = new Jotm(true, false);
      this.jotmCurrent = Current.getCurrent();
    }
  }
View Full Code Here

Examples of org.objectweb.jotm.Jotm

      JMXConnectorServer con = JMXConnectorServerFactory.newJMXConnectorServer(new JMXServiceURL(url), env, getMBeanServer());
      con.start();
     
      if (getTransactionManager() == null) {
        LOGGER.debug("Creating TransactionManager");
        setTransactionManager(new Jotm(true, false).getTransactionManager());
        getTransactionManager().setTransactionTimeout(60);
      }
      if (getNamingContext() == null) {
          System.setProperty(Context.INITIAL_CONTEXT_FACTORY, MuleInitialContextFactory.class.getName());
          System.setProperty(Context.PROVIDER_URL, "mule-jbi");
View Full Code Here

Examples of org.objectweb.jotm.Jotm

    /*
     * Get a transaction manager. creates an instance of JOTM with a local
     * transaction factory. which is not bound to a registry.
     */
    try {
      jotm = new Jotm(true, false);

      xads = new StandardXADataSource();
      ((StandardXADataSource) xads).setDriverName(jdbcResource
          .getClassName());
      ((StandardXADataSource) xads).setUrl(jdbcResource.getUrl());
View Full Code Here

Examples of org.objectweb.jotm.Jotm

    // If none found, create new local JOTM instance.
    if (this.jotmCurrent == null) {
      // Only for use within the current Spring context:
      // local, not bound to registry.
      this.jotm = new Jotm(true, false);
      this.jotmCurrent = Current.getCurrent();
    }
  }
View Full Code Here

Examples of org.objectweb.jotm.Jotm

        // If none found, create new local JOTM instance.
        if (this.jotmCurrent == null) {
            // Only for use within the current Spring context:
            // local, not bound to registry.
            this.jotm = new Jotm(true, false);
            this.jotmCurrent = Current.getCurrent();
        }
        if (defaultTimeout!=null) {
            this.jotmCurrent.setDefaultTimeout(defaultTimeout);
        }
View Full Code Here

Examples of org.objectweb.jotm.Jotm

    // If none found, create new local JOTM instance.
    if (this.jotmCurrent == null) {
      // Only for use within the current Spring context:
      // local, not bound to registry.
      this.jotm = new Jotm(true, false);
      this.jotmCurrent = Current.getCurrent();
    }
  }
View Full Code Here

Examples of org.objectweb.jotm.Jotm

    private final TransactionManager m_transactionManager;
    private final Jotm m_jotm;

    public JOTMTransactionProtocol() {
        try {
            m_jotm = new Jotm(true, false);
            m_transactionManager = m_jotm.getTransactionManager();
        } catch (NamingException e) {
            throw new TransactionException("Could not create a new JOTM Transaction Manager", e);
        }
    }
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.