JMS - Connection Factory

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.

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

posted Jun 16, 2003 21:44:00

0

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.

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

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

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.