Hello,
I would like to access a remote EJB3. In the client, I use the following
solution:
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL,
"localhost:1099");
env.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
Initialcontext context = new InitialContext(env);
It works fine, but I rather prefer to put the properties in a non-compiled file
(web.xml for instance). Is it possible to do this ?
Thanks,
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929108#3929108
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929108
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user