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 Queue |
createQueue(String name)
Factory method to create new Queue instances
|
protected void |
createQueues(Map<String,Object> data,
Hashtable environment) |
protected 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() |
void |
setConnectionPrefix(String connectionPrefix) |
void |
setQueuePrefix(String queuePrefix) |
void |
setTopicPrefix(String topicPrefix) |
public ActiveMQInitialContextFactory()
public Context getInitialContext(Hashtable environment) throws NamingException
getInitialContext
in interface InitialContextFactory
NamingException
public 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
URISyntaxException
protected String[] getConnectionFactoryNames(Map environment)
protected void createQueues(Map<String,Object> data, Hashtable environment)
protected void createTopics(Map<String,Object> data, Hashtable environment)
protected Queue createQueue(String name)
protected Topic createTopic(String name)
protected ActiveMQConnectionFactory createConnectionFactory(Hashtable environment) throws URISyntaxException
URISyntaxException
public String getConnectionPrefix()
public void setConnectionPrefix(String connectionPrefix)
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.