i have a swing-applicationclient connecting to Glassfish
when i start this from eclipse the client starts within 3 seconds but when i start it from webstart the new InitialContext(p) causes a delay of about 30 seconds
I tried the same apllication with Jboss 4.04 GA .... and it's running without the delay
here is the code-snippet that generates the delay:
Properties p = new Properties();
p.put("com.sun.appserv.iiop.endpoints","192.168.10.144:33700,192.168.10.145:33700");
p.put("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory");
p.put("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
p.put("java.naming.factory.state","com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
InitialContext ic=new InitialContext(p);
see the log:
------ log from Webstart: ------------------------------------------------------------------------------
24.06.2008 16:29:47 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:29:47 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:29:47 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: sumOfAllWeights = 20
24.06.2008 16:29:48 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> 192.168.10.144:33700
24.06.2008 16:29:48 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> 192.168.10.145:33700
24.06.2008 16:29:48 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: corbaloc url ==> iiop:1.2_at_192.168.10.144:33700,iiop:1.2_at_192.168.10.145:33700
24.06.2008 16:30:20 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:30:20 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:30:20 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:30:20 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:30:20 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: sumOfAllWeights = 40
24.06.2008 16:30:20 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> glassfish1.felder.intranet:33700
24.06.2008 16:30:20 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> glassfish2.felder.intranet:33701
24.06.2008 16:30:20 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> glassfish2.felder.intranet:33700
24.06.2008 16:30:20 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> glassfish1.felder.intranet:33701
24.06.2008 16:30:20 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: corbaloc url ==> iiop:1.2_at_glassfish1.felder.intranet:33700,iiop:1.2_at_glassfish2.felder.intranet:33701,iiop:1.2_at_glassfish2.felder.intranet:33700,iiop:1.2_at_glassfish1.felder.intranet:33701
Server reply: JEE TEST
------ log from Webstart: ------------------------------------------------------------------------------
------ log from Eclipse: ------------------------------------------------------------------------------
Eclipse:
24.06.2008 16:31:11 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:31:11 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:31:11 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: sumOfAllWeights = 20
24.06.2008 16:31:11 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> 192.168.10.144:33700
24.06.2008 16:31:11 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> 192.168.10.145:33700
24.06.2008 16:31:11 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: corbaloc url ==> iiop:1.2_at_192.168.10.144:33700,iiop:1.2_at_192.168.10.145:33700
24.06.2008 16:31:14 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:31:14 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:31:14 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:31:14 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
24.06.2008 16:31:14 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: sumOfAllWeights = 40
24.06.2008 16:31:14 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> glassfish1.felder.intranet:33701
24.06.2008 16:31:14 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> glassfish1.felder.intranet:33700
24.06.2008 16:31:14 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> glassfish2.felder.intranet:33701
24.06.2008 16:31:14 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: list[i] ==> glassfish2.felder.intranet:33700
24.06.2008 16:31:14 com.sun.appserv.naming.S1ASCtxFactory getCorbalocURL
INFO: corbaloc url ==> iiop:1.2_at_glassfish1.felder.intranet:33701,iiop:1.2_at_glassfish1.felder.intranet:33700,iiop:1.2_at_glassfish2.felder.intranet:33701,iiop:1.2_at_glassfish2.felder.intranet:33700
Server reply: JEE TEST
------ log from Eclipse: ------------------------------------------------------------------------------
[Message sent by forum member 'thomas_x' (thomas_x)]
http://forums.java.net/jive/thread.jspa?messageID=282281