Hello several things:
- ejbd:// is only used if you set it up in tomee, default is deactivated - default ejbd transport for tomee is http (http://xxxxxxx/tomee/ejb) but it needs to be activated too, see tomee.remote.support on http://tomee.apache.org/properties-listing.html - connection factories client needs to be configured in the client, there is a sample there https://github.com/apache/tomee/blob/master/examples/client-resource-lookup-preview/src/test/java/org/superbiz/client/SenderTest.java#L34 (making the why short: otherwise the server would provide either a remote proxy which would be slow or a shared client config which would likely be inaccurate) Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-07-05 14:45 GMT+02:00 Dignesh <[email protected]>: > Hi , > > I am using 7.0.1 version of TomEE. I am doing remote jndi look up to > connection factory from my local client program.I am not sure is there > something which I am missing. Can anyone please help me out in finding what > is the issue here. > I have attached my client program for reference. > clientProgram.txt > <http://tomee-openejb.979440.n4.nabble.com/file/n4679228/clientProgram.txt > > > > Below is stack trace > > Jul 05, 2016 6:46:42 PM org.apache.openejb.client.EventLogger log > INFO: RemoteInitialContextCreated{providerUri=ejbd://localhost:4201} > Jul 05, 2016 6:46:42 PM org.apache.openejb.client.EventLogger log > INFO: ConnectionOpened{uri=ejbd://localhost:4201} > Exception in thread "main" javax.naming.NamingException: Unknown JNDI name > prefix 'openejb/remote/openejb:' > at > org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:130) > at > > org.apache.openejb.server.ejbd.JndiRequestHandler.doLookup(JndiRequestHandler.java:261) > at > > org.apache.openejb.server.ejbd.JndiRequestHandler.processResponse(JndiRequestHandler.java:174) > at > > org.apache.openejb.server.ejbd.EjbDaemon.processJndiResponse(EjbDaemon.java:370) > at > org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:275) > at > org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:104) > at > > org.apache.openejb.server.ejbd.KeepAliveServer$Session.service(KeepAliveServer.java:277) > at > > org.apache.openejb.server.ejbd.KeepAliveServer$Session.access$1000(KeepAliveServer.java:196) > at > > org.apache.openejb.server.ejbd.KeepAliveServer.service(KeepAliveServer.java:331) > at > org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:90) > at > > org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:65) > at > > org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:65) > at > org.apache.openejb.server.ServiceStats.service(ServiceStats.java:54) > at > > org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:65) > at > org.apache.openejb.server.ServiceLogger.service(ServiceLogger.java:93) > at > > org.apache.openejb.server.ServerServiceFilter.service(ServerServiceFilter.java:65) > at > org.apache.openejb.server.ServicePool.access$201(ServicePool.java:39) > at > org.apache.openejb.server.ServicePool$3.run(ServicePool.java:208) > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Remote-JNDI-look-up-to-ConnectionFactories-is-failing-tp4679228.html > Sent from the TomEE Dev mailing list archive at Nabble.com. >
