users@glassfish.java.net

MDB to Remote Queue

From: Uday Subbarayan <Uday.S_at_Sun.COM>
Date: Mon, 29 Oct 2007 10:56:49 -0700

Hi All,
    I have a MDB, which currently listens to a queue in GF and it works.
Now i want this MDB to listen to a queue in a remote SunMQ4.1 running on
a different machine.

Here is the annotation in the MDB:

@MessageDriven(mappedName = "jms/InboundQueue", activationConfig = {
      @ActivationConfigProperty(propertyName = "acknowledgeMode",
propertyValue = "Auto-acknowledge"),
      @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue")
  })

Is there a property that i can specify to connect to remote queue? How
do i change the JNDI context for the remote queue?
Can some one shed some light here?

Thanks,
-Uday.