The moose likes JBoss and the fly likes Jboss 6.1.0 hornetq JMS configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply 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
 
IntelliJ Java IDE
 
subject: Jboss 6.1.0 hornetq JMS configuration
 
Threads others viewed
can I integrate JMS with Servlets???
P2P using WSAD's embedded JMS- Naming Exception
Message is created but not received by the receiver
New To JMS
A simple JNDI question....
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture