Package org.apache.activemq.artemis.jndi
Class ActiveMQInitialContextFactory
java.lang.Object
org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory
- All Implemented Interfaces:
InitialContextFactory
A factory of the ActiveMQ Artemis 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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.jms.ConnectionFactorycreateConnectionFactory(String uri, String name) Factory method to create a new connection factory from the given environmentprotected jakarta.jms.ConnectionFactoryFactory method to create a new connection factory from the given environment, with overridesprotected 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) getFactoryType(String uri) getInitialContext(Hashtable<?, ?> environment) voidsetQueuePrefix(String queuePrefix) voidsetTopicPrefix(String topicPrefix)
-
Field Details
-
REFRESH_TIMEOUT
- See Also:
-
DISCOVERY_INITIAL_WAIT_TIMEOUT
- See Also:
-
DYNAMIC_QUEUE_CONTEXT
- See Also:
-
DYNAMIC_TOPIC_CONTEXT
- See Also:
-
-
Constructor Details
-
ActiveMQInitialContextFactory
public ActiveMQInitialContextFactory()
-
-
Method Details
-
getInitialContext
- Specified by:
getInitialContextin interfaceInitialContextFactory- Throws:
NamingException
-
getTopicPrefix
-
setTopicPrefix
-
getQueuePrefix
-
setQueuePrefix
-
createContext
-
createQueues
-
createTopics
-
createQueue
Factory method to create new Queue instances -
createTopic
Factory method to create new Topic instances -
createConnectionFactory
protected jakarta.jms.ConnectionFactory createConnectionFactory(String uri, String name) throws Exception Factory method to create a new connection factory from the given environment- Throws:
Exception
-
createConnectionFactory
protected jakarta.jms.ConnectionFactory createConnectionFactory(String uri, Map<String, String> overrides, String name) throws ExceptionFactory method to create a new connection factory from the given environment, with overrides- Throws:
Exception
-
getFactoryType
- Throws:
Exception
-