Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes Not able send messgae to other server queue from onMessgae() method of MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Not able send messgae to other server queue from onMessgae() method of MDB" Watch "Not able send messgae to other server queue from onMessgae() method of MDB" New topic
Author

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

Rupesh Raut
Greenhorn

Joined: Nov 29, 2003
Posts: 5
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

Joined: Dec 02, 2004
Posts: 14
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:



 
Consider Paul's rocket mass heater.
 
subject: Not able send messgae to other server queue from onMessgae() method of MDB