Why connecting to remote JMS glassfish server is soooo slow?
  Home FAQ Contact Sign in
comp.lang.java.programmer only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.java.programmer Profile…
 Up
Why connecting to remote JMS glassfish server is soooo slow?         


Author: askdolphin
Date: May 19, 2008 17:13

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:
Show full article (1.61Kb)
no comments