Hi

jndi.properties is useless normally, LocalInitialContextFactory too,
and jndi names are in logs
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014/1/23 mrLittle <mrlittl...@gmail.com>:
> Hi all,
> I've realized a simple J2SE application using embeddable OpenEjb container.
> At the beginning I was looking up for my EJBs using
> "java:global/trunk/{ejbname}" jndi name on
> Context got using EJBContainer.getContext() method.
>
> Since I've added a MANIFEST file to make my application runnable by command
> line I get a "NameNotFound" Exception.
> I've seen there is some ejb deployed under
> java:global/{deploymentId}/openejb/{ejbname} but when I try to list jndi
> resources I got NameNotFound expcetion as well for both global and
> {deploymentId}.
>
> Note: I'm using org.apache.openejb.client.LocalInitialContextFactory to list
> jndi resources.
>
> By debugging my EjbContainer object I've found this jndi name
> "global/comp/env/dummy" but I really don't know how to use it.
>
> How can I get the new names assigned to my ejbs in order to fix my lookup
> string?
> Is jndi.properties file mandatory?
>
> Thank you.
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/Jndi-Lookup-problems-using-MANIFEST-file-tp4667265.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to