• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS - Connection Factory

 
Shashank Hiwarkar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,
Can anybody please help me out in configuring JMS with JBoss3.0.6 + Tomcat 4.1.18.
Regards
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked jboss-webq.xml?

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

Hope this helps...
 
Shashank Hiwarkar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check if this url will help u out.
JBoss Quick Start Guide
[ June 26, 2003: Message edited by: friend friend ]
 
Carsten Hilber
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the classpath of your client program
you need to include jbossmq.jar
 
Raks Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic