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 6.1.0 hornetq JMS configuration 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 6.1.0 hornetq JMS configuration" Watch "Jboss 6.1.0 hornetq JMS configuration" New topic
Author

Jboss 6.1.0 hornetq JMS configuration

velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Dear All,

In my ear using JMS queues, i am unable to configure the JMS . I include queue name in hornetq-jms.xml as



and in my servlet calling like this




and my method will be




is any file i have to change for running the my queue.

Regards,
Suresh.V
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Dear All,

Anyone help out JMS configuration in Jboss 6.1.0 using horentq .
Guru Bojja
Greenhorn

Joined: Nov 21, 2011
Posts: 14
Hi,

what is the error you are getting .
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Hi Guru,

Now i removed my ear and started server . I am able to see the jms name in my jmx-console.

When i run my servlet getting below error.

Could not create JNDI API context: javax.naming.NameNotFoundException: QueueConnectionFactory not bound
Guru Bojja
Greenhorn

Joined: Nov 21, 2011
Posts: 14
HI

Did you add the connection factory "QueueConnectionFactory" in respective JBOSS JMS config files ?
otherwise use default "ConnectionFactory". it will work.
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Hi Guru,

Sorry for late response.

As per your suggestion modified to ConnectionFactory, now i am able to send the JMS.

Now, from my servlet calling remote server JMS queue. My message is going to the jnp url but unable to receive in server side.

Is any configuration i need to change.

My servlet communicate to ear.

Regards,
Suresh
Guru Bojja
Greenhorn

Joined: Nov 21, 2011
Posts: 14
Hi,

What is your receiver ?
it is MDB or any other?

regards
Guru...
velgapudi suresh
Ranch Hand

Joined: Aug 11, 2006
Posts: 32
Hi,

Its MDB.

And i configured my jboss.xml like this

<message-driven>
<ejb-name>STBLogProcessor</ejb-name>
<destination-jndi-name>queue/STBLogProcessor</destination-jndi-name>

</message-driven>

and in ejb.xml i am added

<message-driven >
<description><![CDATA[Description for STBLogProcessor]]></description>
<display-name>Name for STBLogProcessor</display-name>

<ejb-name>STBLogProcessor</ejb-name>

<ejb-class>com.mb.logapp.processor.STBLogProcessor</ejb-class>

<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>

</message-driven>

but when change another jboss 6.1.0 ip then unable to send the message.

regards,
SureshV
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss 6.1.0 hornetq JMS configuration
 
Similar Threads
Message is created but not received by the receiver
can I integrate JMS with Servlets???
P2P using WSAD's embedded JMS- Naming Exception
New To JMS
A simple JNDI question....