This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Jboss MQ ConnectionFactory being returned null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss MQ ConnectionFactory being returned null" Watch "Jboss MQ ConnectionFactory being returned null" New topic
Author

Jboss MQ ConnectionFactory being returned null

Prashant Sehgal
Ranch Hand

Joined: Jun 20, 2003
Posts: 56
Hi,

My connection factory is setup in my Jboss 4.0.4 server like this:



I'm accessing this from outside of Jboss, using a stand alone client with from it's main method like so:



The connection factory is being returned as null. I read somewhere that this might be because my connection factory is setup using jboss-ra and in such cases standalone clients cant access connection factories. One needs to access them from inside the server.

a) Is this correct?
b) If I want to retain my stand-alone client, how should I setup my connection factories?

Thanks,
Prashant.
[ April 14, 2008: Message edited by: Prashant Sehgal ]
 
Don't get me started about those stupid light bulbs.
 
subject: Jboss MQ ConnectionFactory being returned null
 
Similar Threads
javax.naming .NameNotFoundException:
javax.naming.NameNotFoundException: XAConnectionFactory not bound
ClassCastException JMSConnectionFactory
JBM Reconnect
JmsConnectionFactory