Problem - External connection between stand-alone application client and Glassfish server with EJB application
Hello I am facing a problem with a client trying to connect to a module EJB that is hosted on a server Glassfish, I can connect locally, but when trying to use an external access by public IP or through an Amazon AWS instance in my application not can connect to the server glassfish. More detail below:
Firstly, the version used is: Glassfish Application Server Open Source Edition 3.1.1 (Tested with version 3.1.2 ).
The communication protocol used is IIOP (CORBA) whose listener is configured on port 3700. This setting is in the server console application in two groups of properties: default-config and server-config. Attached is the image of the same file print-print-1 and 2, respectively. Here also, the file print-3, the image of the General Information screen in the protocol ports are published in the Port item (s) IIOP.
In one of the tests, create a new IIOP listener configured p / port 1072, but it was not initiated by the server. Only native listeners of the installation is that boot.
With respect to our internet link in doubt check the external block was performed by the operator, create an instance on Amazon AWS with Windows Server 2008 and totally disabling the firewall and Amazon's own server, to leave no remnant blocking by the network. Even releasing the firewall completely unable establish connection between the application and the remote server. The doors were released and tested with telnet ports 3700, 3820, 3920 these ports were successful in connecting.
Regarding the IP settings available in Glassfish, configure the "orb-listener-1" with the listening IP 0.0.0.0 and port 3700 also configure the listening IP with the external and internal IP of the server, without success . We created a high port with the value 65000 without success too.
In the client application, in the lib folder of the JRE installation, there is a jndi.properties file, which is attached with a used setup w / access the services available on Amazon.
URL for images: