org.apache.openejb.resource.activemq
Class ActiveMQFactory

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

public class ActiveMQFactory
extends Object


Constructor Summary
ActiveMQFactory()
           
 
Method Summary
 org.apache.activemq.broker.BrokerService createBroker(URI brokerURI)
           
static String getBrokerMetaFile()
          Returns the prefix metafile name of the poperties file that ActiveMQ should be provided with.
static void setThreadProperties(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 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(Properties p)

createBroker

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


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