I don't know if this will help but you could try explicitly defining the
context settings like this:
Hashtable contextSettings = new Hashtable();
| contextSettings.put("jnp.disableDiscovery", "true");
| contextSettings.put(Context.INITIAL_CONTEXT_FACTORY,
| "org.jnp.interfaces.NamingContextFactory");
| contextSettings.put(Context.PROVIDER_URL, 198.162.0.0);
| contextSettings.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
Change the ip address to whatever the ip is of your remote queue
and then just use this "contextSettings" hashmap in the constructor when you
create your InitialContext object you'll use for the lookup.
The jnp.disableDiscovery = true tells the context loader to only try to resolve
using the IP provided (instead of the default behavior which is to try attempt
to discover and use any valid ip in the cluster).
Hope this helps.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864709#3864709
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864709
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user