Package org.apache.activemq.jndi
Class ActiveMQInitialContextFactory
java.lang.Object
org.apache.activemq.jndi.ActiveMQInitialContextFactory
- All Implemented Interfaces:
InitialContextFactory
- Direct Known Subclasses:
ActiveMQSslInitialContextFactory,ActiveMQWASInitialContextFactory
A factory of the ActiveMQ InitialContext which contains
ConnectionFactory instances as well as a child context called
destinations which contain all of the current active destinations, in
child context depending on the QoS such as transient or durable and queue or
topic.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ActiveMQConnectionFactorycreateConnectionFactory(String name, Hashtable environment) protected ActiveMQConnectionFactorycreateConnectionFactory(Hashtable environment) Factory method to create a new connection factory from the given environmentprotected ReadOnlyContextcreateContext(Hashtable environment, Map<String, Object> data) protected jakarta.jms.QueuecreateQueue(String name) Factory method to create new Queue instancesprotected voidcreateQueues(Map<String, Object> data, Hashtable environment) protected jakarta.jms.TopiccreateTopic(String name) Factory method to create new Topic instancesprotected voidcreateTopics(Map<String, Object> data, Hashtable environment) protected String[]getConnectionFactoryNames(Map environment) getInitialContext(Hashtable environment) protected booleanvoidsetConnectionPrefix(String connectionPrefix) voidsetQueuePrefix(String queuePrefix) voidsetTopicPrefix(String topicPrefix)
-
Constructor Details
-
ActiveMQInitialContextFactory
public ActiveMQInitialContextFactory()
-
-
Method Details
-
getInitialContext
- Specified by:
getInitialContextin interfaceInitialContextFactory- Throws:
NamingException
-
getTopicPrefix
-
setTopicPrefix
-
getQueuePrefix
-
setQueuePrefix
-
createContext
-
createConnectionFactory
protected ActiveMQConnectionFactory createConnectionFactory(String name, Hashtable environment) throws URISyntaxException - Throws:
URISyntaxException
-
getConnectionFactoryNames
-
createQueues
-
createTopics
-
createQueue
Factory method to create new Queue instances -
createTopic
Factory method to create new Topic instances -
createConnectionFactory
protected ActiveMQConnectionFactory createConnectionFactory(Hashtable environment) throws URISyntaxException Factory method to create a new connection factory from the given environment- Throws:
URISyntaxException
-
needsXA
-
getConnectionPrefix
-
setConnectionPrefix
-