Home - Inkimar/2Projects GitHub Wiki
Welcome to the 2Projects wiki!
AS: Glassfish Server is used (1) = Machine-1, (2) Machine-2
Part-1
(1) EJB , deployed on AS ( port 8080 )
(1) J2SE-Client: From the same machine.
These 2 libraries must be imported to the Client-library ( ables the use of JNDI/RMI ) In the Glassfish-directory, should come first in the Classpath. appserv-rt.jar gf-client.jar
This file is fetched from within Netbeans. javaee-api-6.0.jar
(1) WEB-Client ( Servlet ) Deployed on the same machine as the EJB-module
Using web.xml right now instead of annotation on the servlet
a) AS on port 8080
Deployed on the same server as the EJB-Module. works!
Part-2
(1) EJB , deployed on AS ( port 8080 )
(2) J2SE-Client: ( using machine 2 )
Changed the line, setting a new IP-address jndiProps.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.10.163"); Works!