hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject RE: HiveMind and EJB
Date Wed, 09 Mar 2005 11:35:20 GMT
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:markus.wiederkehr@gmail.com] 
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: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message