Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot connect to remote EJB deployed on Glassfish
    primarykey
    data
    text
    <p>I'm trying to execute an EJB remote method in a JavaFX standalone application but the application hangs indefinitely. This remote EJB is deployed on a Glassfish 3.1.2.2 full profile server running in an Amazon AMI - EC2 instance with an elastic IP associated with it. </p> <p>This is the code to call the remote EJB on the client application:</p> <pre><code>Properties configuracion = new Properties(); configuracion.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory"); configuracion.setProperty("org.omg.CORBA.ORBInitialHost","ec2-54-213-19-89.us-west-2.compute.amazonaws.com"); configuracion.setProperty("org.omg.CORBA.ORBInitialPort", "3700"); contexto = new InitialContext(configuracion); ejb = (T) contexto.lookup(nombre); </code></pre> <p>The application just hangs on the lookup method. No exception thrown, no timeout happening, just hangs until the java process is stopped. I've no idea why this is happening. I used Wireshark to see if there was any sort of communication between the server and the client; i saw two packets (request and reply) that showed me that the client can indeed reach the server an so forth. </p> <p>The code works on a local glassfish installation and on an internal network environment, so i think the issue should be with the EC2 environment, but i have no clear idea what could be causing this indefinite hanging. The EC2 instance has the port 3700 open to receive connections, so i don't think this is the issue.</p> <p>Any help would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload