Package org.apache.activemq.jndi
Class ActiveMQInitialContextFactory
- java.lang.Object
-
- org.apache.activemq.jndi.ActiveMQInitialContextFactory
-
- All Implemented Interfaces:
InitialContextFactory
- Direct Known Subclasses:
ActiveMQSslInitialContextFactory
,ActiveMQWASInitialContextFactory
public class ActiveMQInitialContextFactory extends Object implements InitialContextFactory
A factory of the ActiveMQ InitialContext which containsConnectionFactory
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 Constructor Description ActiveMQInitialContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActiveMQConnectionFactory
createConnectionFactory(String name, Hashtable environment)
protected ActiveMQConnectionFactory
createConnectionFactory(Hashtable environment)
Factory method to create a new connection factory from the given environmentprotected ReadOnlyContext
createContext(Hashtable environment, Map<String,Object> data)
protected Queue
createQueue(String name)
Factory method to create new Queue instancesprotected void
createQueues(Map<String,Object> data, Hashtable environment)
protected Topic
createTopic(String name)
Factory method to create new Topic instancesprotected void
createTopics(Map<String,Object> data, Hashtable environment)
protected String[]
getConnectionFactoryNames(Map environment)
String
getConnectionPrefix()
Context
getInitialContext(Hashtable environment)
String
getQueuePrefix()
String
getTopicPrefix()
protected boolean
needsXA(Hashtable environment)
void
setConnectionPrefix(String connectionPrefix)
void
setQueuePrefix(String queuePrefix)
void
setTopicPrefix(String topicPrefix)
-
-
-
Method Detail
-
getInitialContext
public Context getInitialContext(Hashtable environment) throws NamingException
- Specified by:
getInitialContext
in interfaceInitialContextFactory
- Throws:
NamingException
-
getTopicPrefix
public String getTopicPrefix()
-
setTopicPrefix
public void setTopicPrefix(String topicPrefix)
-
getQueuePrefix
public String getQueuePrefix()
-
setQueuePrefix
public void setQueuePrefix(String queuePrefix)
-
createContext
protected ReadOnlyContext createContext(Hashtable environment, Map<String,Object> data)
-
createConnectionFactory
protected ActiveMQConnectionFactory createConnectionFactory(String name, Hashtable environment) throws URISyntaxException
- Throws:
URISyntaxException
-
createConnectionFactory
protected ActiveMQConnectionFactory createConnectionFactory(Hashtable environment) throws URISyntaxException
Factory method to create a new connection factory from the given environment- Throws:
URISyntaxException
-
needsXA
protected boolean needsXA(Hashtable environment)
-
getConnectionPrefix
public String getConnectionPrefix()
-
setConnectionPrefix
public void setConnectionPrefix(String connectionPrefix)
-
-