users@glassfish.java.net

RMI-IIOP with clustering problem

From: <glassfish_at_javadesktop.org>
Date: Mon, 01 Feb 2010 10:31:13 PST

My scenario:
Server1: DAS and NodeAgent1 with 1 instance, ip: 10.0.0.7
Server2: point to Server1 with NodeAgent2 and 1 instance, ip:10.0.0.6

Everything is OK, without proplem.

The problem is that both of the instances web client call the same EJB Module of Server 1 through RMI-IIOP: Server1:33700.

My purpose is each instance will call his own EJB Module for job so i config the code like the below [b]but not success:[/b]

Properties p = new Properties();

p.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory");

p.setProperty("com.sun.appserv.iiop.endpoints", "10.0.0.7:3700,10.0.0.7:33700,10.0.0.6:3700,10.0.0.6:33700");

Anybody know how to configure each instance will use his own module, not call to other instance?

Thanks for any help.
[Message sent by forum member 'dinhngoclan' (dinhngoclan76_at_yahoo.com)]

http://forums.java.net/jive/thread.jspa?messageID=384102