Trying to access an ejb from a java application. We have a delegate class which looks up the ejb successfully 'IF' you are a servlet within the container which includes the proper ejb references.
It does so like this: Object obj = ctx.lookup("java:comp/env/ejb/WorkplaceSessionBean"); Works well. But, if I write a java application and I use the delegate class to get the ejb, the above call now fails with the NameNotFoundException. As a quick test I wrote a look up in my application (non servlet) and it works if I do the following: // the physical name Object obj = ctx.lookup("ejb/WorkplaceSessionBean"); Is there an environment setting/property I can set to still use the supplied, out of my control helper class of delegate: I am currently using the following: -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=jnp://localhost:1099 I am using 4.0.1 but do not believe that to be related. Seems I am missing a vm parameter. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861463#3861463 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861463 ------------------------------------------------------- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user