there are some hard coded defaults that make the sample code work, have a look at the source: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/jndi/ActiveMQInitialContextFactory.java?view=markup
In the properties file the connecitonFactoryNames property is commented out so the defaults are in effect. 2009/12/1 sbasani <[email protected]> > > Hi, > > I am new to ActiveMQ, I have gone through > http://activemq.apache.org/jndi-support.html and and gone through the > "Example Java code". > > First they specified > "connectionFactoryNames = connectionFactory, queueConnectionFactory, > topicConnectionFactry" > in jndi.properties. In this case as per the jndi key is > "connectionFactoryNames" and value is "connectionFactory, > queueConnectionFactory, topicConnectionFactry". > > But in "Example Java code" looking for "ConnectionFactory". Here > "ConnectionFactory" is value in jndi.properties it's not a key. But example > program and everything working fine. > > connectionFactory = > (ConnectionFactory)jndiContext.lookup("ConnectionFactory"); > > Please let me know... what is the logic here???? > > Thanks. > -- > View this message in context: > http://old.nabble.com/Confirm-the-correct-usage-of-%22connectionFactoryNames%22-tp26591001p26591001.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source Integration http://fusesource.com
