This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rupesh Raut
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
 
H Sivad
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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:



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic