This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JMS - Connection Factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JMS - Connection Factory" Watch "JMS - Connection Factory" New topic
Author

JMS - Connection Factory

Shashank Hiwarkar
Ranch Hand

Joined: Feb 17, 2002
Posts: 32
Dear Friends,
I am facing some problem with JMS configurations with JBoss.
I have written XXX-service.xml. It has mbean for creating the topic. after deployment of this file topic is created successfully, and JNDI name is bound to it as topic/xxxxx.
I don't know how to configure TopicConnectionFactory. Somewhere I have read that, we can use default ConnectionFactory for JNDI lookup. hence I have written a JMS client which is using
JndiCtx.lookup("ConnectionFactory")
But this is not working. It is giving me exception at this line only.
Can anybody please help me out in finding my ConnectionFactory.
Thanks.


Shashank Hiwarkar<br />SCJP, SCWCD
Shashank Hiwarkar
Ranch Hand

Joined: Feb 17, 2002
Posts: 32
Dear Friends,
Can anybody please help me out in configuring JMS with JBoss3.0.6 + Tomcat 4.1.18.
Regards
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Have you checked jboss-webq.xml?

if you're using MDB, you should add this to jboss.xml

Hope this helps...


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Shashank Hiwarkar
Ranch Hand

Joined: Feb 17, 2002
Posts: 32
Dear Andres,
In my JBoss version, there is no file like jboss-webq.xml. I have jms-service.xml, but it is written with <mbean> tags. With the <mbean> tag I am in a position in creating and binding destination i.e. "Queue". But "QueueConnectionFactory" I am in no position to create.
Can anybody throw any light on this.
Thanks.
Preeti Rande
Greenhorn

Joined: Jun 26, 2003
Posts: 5
check if this url will help u out.
JBoss Quick Start Guide
[ June 26, 2003: Message edited by: friend friend ]
Carsten Hilber
Greenhorn

Joined: Sep 24, 2003
Posts: 1
Hi,
the standard ConnectionFactory for both, queue and topic, provided by JBoss 3.0.7 is called 'java:/XAConnectionFactory'.
You can lookup the name in the JMX Agent View (normally http://localhost:8080/jmx-console/)
watch out for the entry 'name=JBossMQProvider,service=JMSProviderLoader' in the jboss.mq category. If you follow the link you will see the mbean entries under QueueConnectionRef and TopicConnectionRef. These entries are the JNDI names of the factories.
Of course you could also take a look in the jms-service.xml but that would be to easy
John Vandeput
Greenhorn

Joined: Jan 19, 2004
Posts: 1
In the classpath of your client program
you need to include jbossmq.jar
Raks Kumar
Greenhorn

Joined: Jan 30, 2006
Posts: 5
Dear Friends
I want to know that if i am sending message through JMS and JBoss Application server.After getting the message,Application server will send Acknowledgement to the Client.If connection break in between receiving the
Acknowledgement then how can it recover.

Please send me response as soon as possible.
If possible then give Some code.
Thanks
Rakesh
Wiley Snyder
Greenhorn

Joined: Oct 26, 2005
Posts: 23
Dear Friends
I want to know that if i am sending message through JMS and JBoss Application server.After getting the message,Application server will send Acknowledgement to the Client.If connection break in between receiving the
Acknowledgement then how can it recover.

Please send me response as soon as possible.
If possible then give Some code.
Thanks
Rakesh
===================================================================

IN RESPONSE SIR:

Wiley, be nice.
[ February 08, 2006: Message edited by: Marilyn de Queiroz ]
 
Don't get me started about those stupid light bulbs.
 
subject: JMS - Connection Factory