I'm working with remote EJB.  My server side is an *.ear deployed to apps
directory.  It unpacks and appears to deploy correctly as noted from the
log.

What is required on the client side for tomee POM entry?  I've used the
documented http connection for tomee but I am getting the "cannot open input
stream to server" exception.  Right now my client POM entry is:

        <dependency>
            <groupId>org.apache.tomee</groupId>
            <artifactId>apache-tomee</artifactId>
            <version>7.0.0-M1</version>
        </dependency>

My client code:
                Properties p = new Properties();
                p.put("java.naming.factory.initial",
"org.apache.openejb.client.RemoteInitialContextFactory");
                p.put("java.naming.provider.url", 
"http://192.168.1.103:8080/tomee/ejb";);
                InitialContext ctx = null;
                try {
                        ctx = new InitialContext(p);
                } catch (NamingException ex) {
                        
Logger.getLogger(ClientConstants.class.getName()).log(Level.SEVERE, null,
ex);
                }
                try {
                        myBean = (NetworkLedgerServerRemote)
ctx.lookup("NetworkLedgerServerRemote");
                } catch (NamingException ex) {
                        
Logger.getLogger(ClientConstants.class.getName()).log(Level.SEVERE, null,
ex);
                }

Google searching I saw where Romain made a point that client and server
versions of Tomcat have to be the same.  I am using stock 7.0.0-M1.  I note
that it is running 8.0.29 and the announcement says 7.0.0-M1 is built on
Tomcat 8.0.30.  Is this a problem?

Thanks for any help getting the connection to work.





--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Remote-EJB-tp4677612.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to