while sending message to queue by http
we can populate context in two different ways?
1) Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL,
"jnp://192.168.114.116:1099");
ctx = new InitialContext(p);
2) Properties p = new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jboss.naming.HttpNamingContextFactory");
env.setProperty(Context.PROVIDER_URL,
""http://192.168.114.116:8080/invoker/JNDIFactory");
ctx = new InitialContext(p);
How does it matter ????
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138236#4138236
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138236
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user