It is an oddity of JBoss JNDI that when you have

 <tx-connection-factory>
      <jndi-name>testing/TopicConnectionFactory</jndi-name> 
...
</tx-connection-factory>

then you have to do the JNDI lookup as follows outside of the J2EE
container:

ref = jndiContext.lookup("java:testing/TopicConnectionFactory"); 

The Topic resource, on the other hand, is looked up exactly as named in the
XML.

At least, that is what I do, and it works.    Its a JBoss convention, I
believe, that "datasource" JNDI names have a "java:" prefix. 

I do not have an explanation for this.    least, that has been my
experience.
-- 
View this message in context: 
http://www.nabble.com/JBoss-integration-and-lookup-of-connection-factories.-tf3061463.html#a8524030
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to