hmm first it should be injactable in your test (@EJB), then the jndi name should be logged
if not please reproduce it in a runnable sample *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/5/27 AndreasN <[email protected]> > Hi, > > I tried different lookups, no one will work... > > The log stated: > [OpenEJB] Auto-deploying ejb TestBean: > EjbDeployment(deployment-id=TestBean) > > Injection by: > > @AppResource > Context context; > > All lookups are null: > > obj = context.lookup("java:global/unit-name/ITestBean"); > obj = context.lookup("java:global/ITestBean"); > obj = context.lookup("java:global/TestBean"); > obj = context.lookup("java:global/TestBean/ITestBean"); > > > I read this: http://docs.oracle.com/javaee/6/tutorial/doc/gipjf.html > > Is there a way to lookup what names from objects can accessed? > > > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/How-to-create-JNDI-interface-in-Application-Composer-later-tp4663243p4663248.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
