Hey guys. I'm having some trouble to lookup a service using OpenEJB. Here's my situation. I use JBoss, but I want to change to OpenEJB. When I'm using JBoss, I use JNP to access the services through network.
In OpenEJB, I have these: https://gist.github.com/raw/995335/cc43a849447f7d5e9ec93051cdfe4b732db0d20e/Client.java - a Client class; https://gist.github.com/raw/995335/28f77d279ac720736ea3a8d3cb93687cbbb8a14e/HelloService.java - a Service class; https://gist.github.com/raw/995335/39cd8b961b501e5788c0852d4f263268ebce91cf/HelloSession.java - a Session class (my bean). The Client class is in a differente project (in Eclipse) from the Service and Session classes. Ok. So, I export the jar from the Service and Session classes (start.jar), start openejb (openejb start), deploy the app (openejb deploy start.jar) and try to lookup using the Client class. In my computer works, but through the network doesn't. I've tried several things, but none of them I succeeded. The https://gist.github.com/raw/995335/07e5ff922810858407f02820109f85b46b7b6b5a/FirstError.java first error I got using my computer (without network request). The https://gist.github.com/raw/995335/a58716575012da3ba0e489975f128d2e09f4f2c3/SecondError.java second too. When I use 127.0.0.1 or localhost it works, only for me. My ip address is 192.168.0.204. I read http://openejb.apache.org/3.0/embedded-and-remotable.html this tutorial but I didn't understand a few things. The setUp method is supposed to stay where the "server" is, right? So if another computer wants to lookup, it'll only need openejb-client-3.1.4, the start.jar and the ip address (so it can know where to lookup). I tried this, but I got several ClassNotFoundException. I fixed putting the javaee-api-5.0-3.jar file in the classpath (in the client). Did I did something wrong? Thanks a lot! -- View this message in context: http://openejb.979440.n4.nabble.com/Remote-access-through-network-tp3555579p3555579.html Sent from the OpenEJB User mailing list archive at Nabble.com.
