org.codehaus.activemq.ra
Class ActiveMQRAConnectionFactory

java.lang.Object
  extended byorg.codehaus.activemq.jndi.JNDIBaseStorable
      extended byorg.codehaus.activemq.ActiveMQConnectionFactory
          extended byorg.codehaus.activemq.ActiveMQXAConnectionFactory
              extended byorg.codehaus.activemq.ra.ActiveMQRAConnectionFactory
All Implemented Interfaces:
ConnectionFactory, org.codehaus.activemq.jndi.JNDIStorableInterface, QueueConnectionFactory, Referenceable, org.codehaus.activemq.service.Service, org.codehaus.activemq.management.StatsCapable, TopicConnectionFactory, XAConnectionFactory, XAQueueConnectionFactory, XATopicConnectionFactory

public class ActiveMQRAConnectionFactory
extends org.codehaus.activemq.ActiveMQXAConnectionFactory

The ActiveMQRAConnectionFactory extends the ActiveMQXAConnectionFactory so that it is more flexible in terms of using the availble transaction context. A normal ActiveMQXAConnectionFactory implements the XAConnectionFactory interface stictly which means that it can only do work in the context of an XA transaction.


Field Summary
 
Fields inherited from class org.codehaus.activemq.ActiveMQConnectionFactory
brokerContainer, brokerName, brokerURL, clientID, password, useAsyncSend, userName
 
Constructor Summary
ActiveMQRAConnectionFactory()
           
ActiveMQRAConnectionFactory(String brokerURL)
           
ActiveMQRAConnectionFactory(String userName, String password, String brokerURL)
           
 
Method Summary
protected  org.codehaus.activemq.ActiveMQXAConnection createActiveMQXAConnection(String userName, String password)
           
 
Methods inherited from class org.codehaus.activemq.ActiveMQXAConnectionFactory
createConnection, createConnection, createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, createXAConnection, createXAConnection, createXAQueueConnection, createXAQueueConnection, createXATopicConnection, createXATopicConnection
 
Methods inherited from class org.codehaus.activemq.ActiveMQConnectionFactory
buildFromProperties, createBrokerConnector, createBrokerContainerFactory, createMulticastClientID, createTransportChannel, createURI, createURI, ensureMulticastChannelIsAvailable, ensureServerIsAvailable, getBoolean, getBoolean, getBrokerContainer, getBrokerContainerFactory, getBrokerContext, getBrokerName, getBrokerName, getBrokerURL, getBrokerXmlConfig, getClientID, getContainer, getEmbeddedBroker, getFactoryStats, getPassword, getStats, getUserName, getWireFormat, isUseAsyncSend, isUseEmbeddedBroker, populateProperties, registerBroker, setBrokerContainerFactory, setBrokerContext, setBrokerName, setBrokerURL, setBrokerXmlConfig, setClientID, setPassword, setUseAsyncSend, setUseEmbeddedBroker, setUserName, setWireFormat, start, stop, unregisterBroker
 
Methods inherited from class org.codehaus.activemq.jndi.JNDIBaseStorable
getProperties, getReference, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMQRAConnectionFactory

public ActiveMQRAConnectionFactory()

ActiveMQRAConnectionFactory

public ActiveMQRAConnectionFactory(String brokerURL)

ActiveMQRAConnectionFactory

public ActiveMQRAConnectionFactory(String userName,
                                   String password,
                                   String brokerURL)
Method Detail

createActiveMQXAConnection

protected org.codehaus.activemq.ActiveMQXAConnection createActiveMQXAConnection(String userName,
                                                                                String password)
                                                                         throws JMSException
Throws:
JMSException


Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.