|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.jndi.ActiveMQInitialContextFactory
org.activemq.jndi.ActiveMQWASInitialContextFactory
public class ActiveMQWASInitialContextFactory
This implementation of 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. Additionaly
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
.
Field Summary |
---|
Fields inherited from class org.activemq.jndi.ActiveMQInitialContextFactory |
---|
defaultConnectionFactoryNames |
Constructor Summary | |
---|---|
ActiveMQWASInitialContextFactory()
|
Method Summary | |
---|---|
Context |
getInitialContext(Hashtable environment)
|
protected Hashtable |
transformEnvironment(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) |
Methods inherited from class org.activemq.jndi.ActiveMQInitialContextFactory |
---|
createConnectionFactory, createQueue, createQueues, createTopic, createTopics, getConnectionFactoryNames, getConnectionPrefix, getQueuePrefix, getTopicPrefix, setConnectionPrefix, setQueuePrefix, setTopicPrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActiveMQWASInitialContextFactory()
Method Detail |
---|
public Context getInitialContext(Hashtable environment) throws NamingException
getInitialContext
in interface InitialContextFactory
getInitialContext
in class ActiveMQInitialContextFactory
NamingException
InitialContextFactory.getInitialContext(java.util.Hashtable)
protected Hashtable transformEnvironment(Hashtable environment)
environment
- properties for transformation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |