• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jboss 6.1.0 hornetq JMS configuration

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

Anyone help out JMS configuration in Jboss 6.1.0 using horentq .
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

what is the error you are getting .
 
velgapudi suresh
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

regards
Guru...
 
velgapudi suresh
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic