When running a java application outside of the container (non servlet) I am
having trouble looking up ejb's using the enc naming structure of:
Object obj = ctx.lookup("java:comp/env/ejb/WorkplaceSessionBean");
But, if I change it to:
Object obj = ctx.lookup("ejb/WorkplaceSessionBean");
it works.
I do not have control over this though as I am supplied a jar.
I have tried the following VM parameters to overcome but without success.
Can someone shed some light?
-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.provider.url=jnp://JBOSS_HOST:1099/
-Djava.security.auth.login.config=login.conf
with login.conf being:
jboss_client {
org.jboss.security.ClientLoginModule required;
};
It still does not seem to work.
thanks-
chris
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861946#3861946
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861946
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user