public class ActiveMQWASInitialContextFactory extends ActiveMQInitialContextFactory
InitialContextFactory
should be used
when ActiveMQ is used as WebSphere Generic JMS Provider. It is proved that it
works on WebSphere 5.1. The reason for using this class is that custom
property defined for Generic JMS Provider are passed to InitialContextFactory
only if it begins with java.naming or javax.naming prefix. Additionally
provider url for the JMS provider can not contain ',' character that is
necessary when the list of nodes is provided. So the role of this class is to
transform properties before passing it to ActiveMQInitialContextFactory.Constructor and Description |
---|
ActiveMQWASInitialContextFactory() |
Modifier and Type | Method and Description |
---|---|
javax.naming.Context |
getInitialContext(java.util.Hashtable environment) |
protected java.util.Hashtable |
transformEnvironment(java.util.Hashtable environment)
Performs following transformation of properties:
(java.naming.queue.xxx.yyy,value)=>(queue.xxx/yyy,value)
(java.naming.topic.xxx.yyy,value)=>(topic.xxx/yyy,value)
(java.naming.connectionFactoryNames,value)=>(connectionFactoryNames,value)
(java.naming.provider.url,url1;url2)=>java.naming.provider.url,url1,url1)
|
createConnectionFactory, createConnectionFactory, createContext, createQueue, createQueues, createTopic, createTopics, getConnectionFactoryNames, getConnectionPrefix, getQueuePrefix, getTopicPrefix, setConnectionPrefix, setQueuePrefix, setTopicPrefix
public javax.naming.Context getInitialContext(java.util.Hashtable environment) throws javax.naming.NamingException
getInitialContext
in interface javax.naming.spi.InitialContextFactory
getInitialContext
in class ActiveMQInitialContextFactory
javax.naming.NamingException
InitialContextFactory.getInitialContext(java.util.Hashtable)
protected java.util.Hashtable transformEnvironment(java.util.Hashtable environment)
environment
- properties for transformationCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.