public class ActiveMQInitialContextFactory extends Object implements InitialContextFactory
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 and Description |
|---|
ActiveMQInitialContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected ActiveMQConnectionFactory |
createConnectionFactory(Hashtable environment)
Factory method to create a new connection factory from the given
environment
|
protected ActiveMQConnectionFactory |
createConnectionFactory(String name,
Hashtable environment) |
protected ReadOnlyContext |
createContext(Hashtable environment,
Map<String,Object> data) |
protected javax.jms.Queue |
createQueue(String name)
Factory method to create new Queue instances
|
protected void |
createQueues(Map<String,Object> data,
Hashtable environment) |
protected javax.jms.Topic |
createTopic(String name)
Factory method to create new Topic instances
|
protected 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) |
public ActiveMQInitialContextFactory()
public Context getInitialContext(Hashtable environment) throws NamingException
getInitialContext in interface InitialContextFactoryNamingExceptionpublic String getTopicPrefix()
public void setTopicPrefix(String topicPrefix)
public String getQueuePrefix()
public void setQueuePrefix(String queuePrefix)
protected ReadOnlyContext createContext(Hashtable environment, Map<String,Object> data)
protected ActiveMQConnectionFactory createConnectionFactory(String name, Hashtable environment) throws URISyntaxException
URISyntaxExceptionprotected String[] getConnectionFactoryNames(Map environment)
protected void createQueues(Map<String,Object> data, Hashtable environment)
protected void createTopics(Map<String,Object> data, Hashtable environment)
protected javax.jms.Queue createQueue(String name)
protected javax.jms.Topic createTopic(String name)
protected ActiveMQConnectionFactory createConnectionFactory(Hashtable environment) throws URISyntaxException
URISyntaxExceptionpublic String getConnectionPrefix()
public void setConnectionPrefix(String connectionPrefix)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.