You don't specify the other JVM. Instead you specify the port (and other criteria) that the JDNI service that is running in the other JVM is using. You also don't need to specify the object type, you specify the registered name of the object. Here is an example...
This example is used to connect to the JMX RMI connector, but that's not relevant. Notice that you have to specify the protocol, the port, the server, and the registered name to get the connector object.
Also, notice that it uses JBoss specific classes, as this connects to a JBoss server, so you need to also have the application server's client library in you path.
I suggest that you log into the support web-site, for your application server, for JMS queues, for this important information.
Henry [ July 14, 2006: Message edited by: Henry Wong ]
Joined: Oct 04, 2004
Thanks Henry, I am actually trying to lookup the queues and topics created by a middleware product called Tibco, I want to do the lookup from a seperate application that runs on web logic.. do you know if this is possible ?