Can anyone tell me how you reference a server cluster that is serving up the
same beans?
What does the PROVIDER_URL look like when you're referencing  a cluster?
I'm doing something like the following.

          java.util.Hashtable properties = new java.util.Hashtable(2);

            // remote server
            properties.put(javax.naming.Context.PROVIDER_URL,
"iiop://xxx.xxx.xxx.xxx:900/");

            // local name server
            properties.put(javax.naming.Context.PROVIDER_URL, "iiop:///");

            properties.put(
                javax.naming.Context.INITIAL_CONTEXT_FACTORY,
                "com.ibm.ejs.ns.jndi.CNInitialContextFactory");

            // IBM name services
            javax.naming.InitialContext initContext =
                new javax.naming.InitialContext(properties);

            // home
            Object objref = initContext.lookup("AccountBMPSFSB/SFSB");
            AccountBMPSFSB.SFSBHome home =
                (AccountBMPSFSB.SFSBHome)
javax.rmi.PortableRemoteObject.narrow(
                    objref,
                    AccountBMPSFSB.SFSBHome.class);

            bean = home.create();


Anthony Catalfano
Information Technology Analyst
Application Management Services
400 19th Street
Moline, IL  61265-1337
phone:  (309) 748-5201
fax:    (309) 765-4128

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to