i made a swing-client connecting to EJB-cluster
when i try this on a local machine (client and cluster is on the same physical machine) everything goes fine !
when i try to connect to a remote -applicationserver (client and applicationserver on different machines) on port 3700 everything works fine
when i try to connect to a remote-applicationserver on port 33700 the client fails with the following error code :
19.06.2008 14:36:09 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
WARNUNG: NAM1005 : No Endpoints selected. Please specify using system property com.sun.appserv.iiop.endpoints.
19.06.2008 14:36:11 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: endpoint.weight after checking isWeight = 10
19.06.2008 14:36:11 com.sun.appserv.naming.RoundRobinPolicy setClusterInstanceInfo
INFO: sumOfAllWeights = 10
19.06.2008 14:36:12 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNUNG: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
at com.sun.corba.ee.impl.folb.ClientGroupManager.getInitialClusterInstanceInfo(ClientGroupManager.java:596)
at com.sun.corba.ee.impl.folb.ClientGroupManager$GIS.getClusterInstanceInfo(ClientGroupManager.java:620)
at com.sun.corba.ee.impl.folb.ClientGroupManager.getClusterInstanceInfo(ClientGroupManager.java:666)
at com.sun.appserv.naming.GroupInfoServiceObserverImpl.membershipChange(GroupInfoServiceObserverImpl.java:73)
at com.sun.appserv.naming.S1ASCtxFactory.getInitialContext(S1ASCtxFactory.java:290)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
---------------------------------------------------------------------------------------------
here is the code snippet that genereate to previous error code:
Properties p = new Properties();
p.put("com.sun.appserv.iiop.endpoints","glassfish2.felder.intranet:33700,glassfish2.felder.intranet:3701"); p.put("java.naming.factory.initial","com.sun.appserv.naming.S1ASCtxFactory");
InitialContext ic=new InitialContext(p);
Object o = ic.lookup(LOOKUPNAME); //....... this line generates the error !!
-------------------------------------------------------------------------------------------
when i start a glassfish domain on my localhost and try to connect with the java-client to the remote cluster everything works ... but when i stop the local glassfish i cannot reach the remote-cluster
-----------------------------------------------------------------------------------------------
[Message sent by forum member 'thomas_x' (thomas_x)]
http://forums.java.net/jive/thread.jspa?messageID=281290