JmsXAResourceProvider xref

    1   /*
    2    * Created on May 9, 2004
    3    *
    4    * TODO To change the template for this generated file go to Window -
    5    * Preferences - Java - Code Generation - Code and Comments
    6    */
    7   package org.codehaus.activemq;
    8   import javax.jms.ConnectionFactory;
    9   import javax.jms.JMSException;
    10  /***
    11   * @version $Revision: 1.1 $
    12   */
    13  public class JmsXAResourceProvider extends JmsResourceProvider {
    14
    15  	/***
    16  	 * @see org.codehaus.activemq.JmsResourceProvider#createConnectionFactory()
    17  	 */
    18  	public ConnectionFactory createConnectionFactory() throws JMSException {
    19  		return new ActiveMQXAConnectionFactory(getServerUri());
    20  	}
    21
    22  	/***
    23  	 * @see org.codehaus.activemq.JmsResourceProvider#isTransacted()
    24  	 */
    25  	public boolean isTransacted() {
    26  		return true;
    27  	}
    28  }