hi,
i had a read and i'm still stuck.
my question specifically is about why the InitialContext i create
for referencing a KeyGeneratorBean on another box doesn't work.
machines A, B, C, and D each have the same app deployed,
which has many beans. Each box should use it's own beans,
except KeyGeneratorBean.
I want to tell *all* boxes to use the KeyGeneratorBean on machine A.
I do this by creating a new InitialContext that is used only when getting
a home interface to KeyGeneratorBean, by calling the InitialContext(
Hashtable)
constructor, where Hashtable contains
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.security.principal=<principal>
java.naming.security.credentials=<credentials>
java.naming.provider.url=ormi://machineA/myApp
this works when i run a standalone dos program to get a reference to
KeyGeneratorBean on machineA, so why doesn't it work when
the same code is run from inside an EJB on machineB?
any help much appreciated,
greg.
----- Original Message -----
From: "Jason Smith" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, June 08, 2001 2:04 PM
Subject: RE: clustering and key generation
> These posts in the archive may help you (although they target Orion web
> server->Orion ejb server configuration instead of a cluster).
>
> http://www.mail-archive.com/[email protected]/msg12704.html
> http://www.mail-archive.com/[email protected]/msg11905.html
>
> -jason
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Matthews
> Sent: Thursday, June 07, 2001 10:19 PM
> To: Orion-Interest
> Subject: clustering and key generation
>
>
> dear all,
>
> if there any way to get all machines in a cluster to lookup a stateless
> session bean (KeyGeneratorBean) on *one* of the machines in the cluster
> only.
>
> i've given it a try but can't seem to find a way to get machine B to use
> machine A's KeyGeneratorBean, even though machine B builds a new
> InitialContext with the 4 environment parameters, e.g.
> principal/credentials/url/factory when doing a lookup for KeyBean.
>
> thanks,
> greg.
>
>
>