take care default eclipse setup just ignore tomee cause you need to import config file in wtp config project or use in place metadata in wtp config
should be explained on http://tomee.apache.org/tomee-and-eclipse.html Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-04-04 10:47 GMT+02:00 ttran <[email protected]>: > Hi, > > Ah ok, i see the problem. When i debug the webapp with tomee as local server > inside eclipse, ejb are not loaded. I didn't found any name in the log. > > Now i exported the war and deploy it without eclipse, i get this for my > interface: > > Infos: Jndi(name=PersonneFacadeImplRemote) --> > Ejb(deployment-id=PersonneFacadeImpl) > avr. 04, 2014 10:33:22 AM org.apache.openejb.assembler.classic.JndiBuilder > bind > Infos: > Jndi(name=global/Ejb3/PersonneFacadeImpl!com.training.domain.ejb.facade.PersonneFacadeRemote) > --> Ejb(deployment-id=PersonneFacadeImpl) > avr. 04, 2014 10:33:22 AM org.apache.openejb.assembler.classic.JndiBuilder > bind > Infos: Jndi(name=global/Ejb3/PersonneFacadeImpl) --> > Ejb(deployment-id=PersonneFacadeImpl) > > so my lookup is: > Properties p = new Properties(); > p.setProperty("java.naming.factory.initial","org.apache.openejb.client.RemoteInitialContextFactory"); > p.setProperty("java.naming.provider.url", > "http://localhost:8082/tomee/ejb"); > > InitialContext ic = new InitialContext(p); > PersonneFacadeRemote pfl = (PersonneFacadeRemote) > ic.lookup("java:global/Ejb3/PersonneFacadeImpl!com.training.domain.ejb.facade.PersonneFacadeRemote"); > > but it still does not work yet maybe because i have another problem with the > driver jdbc. I'll correct it then let you know. > > Thank you very much. > ttran > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Problem-to-create-initialContext-tp4668512p4668571.html > Sent from the OpenEJB Dev mailing list archive at Nabble.com.
