Dear All,
I'm trying to set up the communication between the client and the
topic/queue located on a glassfish server remotely.
Here is the code I use:
*************************************************
props = new Properties();
props.put(
Context.PROVIDER_URL, "iiop://173.24.56.356:3700" );
props.put( Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory" );
jndi = new InitialContext(props);
connectionFactory =
(ConnectionFactory)jndi.lookup( "myonnectionFactory" );
requestQueue = (Queue) jndi.lookup( "myRequestQueue" );
*************************************************
The problem is that whenever the client the launched, it takes about 2
mins to connect. At first, it shows sth such as: