org.apache.openejb.resource.activemq
Class ActiveMQFactory

java.lang.Object
  extended by org.apache.openejb.resource.activemq.ActiveMQFactory

public class ActiveMQFactory
extends java.lang.Object


Constructor Summary
ActiveMQFactory()
           
 
Method Summary
 org.apache.activemq.broker.BrokerService createBroker(java.net.URI brokerURI)
           
static java.lang.String getBrokerMetaFile()
          Returns the prefix metafile name of the poperties file that ActiveMQ should be provided with.
static void setThreadProperties(java.util.Properties p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMQFactory

public ActiveMQFactory()
Method Detail

getBrokerMetaFile

public static java.lang.String getBrokerMetaFile()
Returns the prefix metafile name of the poperties file that ActiveMQ should be provided with. This file is located at META-INF/services/org/apache/activemq/broker/ and defines the BrokerFactoryHandler to load.

Returns:
String name - will be either 'amq5factory:' or 'amq4factory:' - note the trailing ':'

setThreadProperties

public static void setThreadProperties(java.util.Properties p)

createBroker

public org.apache.activemq.broker.BrokerService createBroker(java.net.URI brokerURI)
                                                      throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.