Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to send a JMS message to a remote Queue?

b7aAug 9 2011 — edited Aug 22 2011
Hi,

I know how to create a JMS message and send it to an MDB that listens to a topic in the same container in which the JMS is created.

In other words, if I have the following MDB:

@MessageDriven(mappedName = "jms/MyQueue", ...)
public class MyMDB implements MessageListener {
// ...
}

Elsewhere in my JEE app I can create a Queue like this:

@Resource(mappedName = "jms/MyQueue")
Queue queue;

and use it to send a message to the MDB.

But How can I send a message to an MDB that's deployed in another app server on another machine in the network? Both of the app servers are Glassfish.

Thanks in advance.

Edited by: EJP on 9/08/2011 21:49: fixed your meaningless title

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 19 2011
Added on Aug 9 2011
2 comments
1,212 views