You can create a class called RegistrySingleton or something...
public class RegistrySingleton
{
public Registry getInstance()
{
}
}
That way, your EJBs don't need to keep a reference at all times (so they can
be passivated). They can just look it up when they need it (inside a
method, for example).
-----Original Message-----
From: Markus Wiederkehr [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 5:47 AM
To: Hivemind users
Subject: HiveMind and EJB
Hello,
I have a Stateful Session Bean that needs to access a HiveMind service.
I wonder what is the best place to build the HiveMind registry in this case?
And, since EJBs may not have static data members, where can I store the
registry once I have created it?
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]