• 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

Not able send messgae to other server queue from onMessgae() method of MDB

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am getting "could not found coonection" error message.
I am trying to send message to another WLS server queue from onMessage()
method of Message Driven Bean of WLS server. But it is raising error at following line
queueSessionLc = conLc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);

What is wrong and what are the solutions for sending message on another WLS queue.

Thanks
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rupesh Raut:
Hi,
I am getting "could not found coonection" error message.
I am trying to send message to another WLS server queue from onMessage()
method of Message Driven Bean of WLS server. But it is raising error at following line
queueSessionLc = conLc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);

What is wrong and what are the solutions for sending message on another WLS queue.

Thanks



You didn't include much code, so it's hard to tell. Do you get the connection from the context first? The code would look something like this:



 
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic