Well, in EJB you can't today (spec doesn't provide for this).
But GemStone/J you can have a shared activation CORBA object. All clients
receive a reference to the same CORBA server object. There are other
activation models as well, but this one can provide Singleton. Similarly
other servers could do the same with RMI/JRMP.
Note that this is singleton per name service domain ("system" in GemStone/J
parlance). If you wanted a Global Singleton, you'd have to make sure clients
all use the same name service domain.
-Chris.
> -----Original Message-----
> From: Hasko Heinecke [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 14, 1999 1:36 AM
> To: [EMAIL PROTECTED]
> Subject: Re: EJB 2.0... when???
>
> Chris Raber wrote:
> > While we are complaining, how about:
> >
> > - Need a portable way to model singletons
>
> How would you guarantee singleton-ness in a distributed environment?
>
> Hasko Heinecke
> Daedalos Consulting
>
> ==========================================================================
> =
> 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".
===========================================================================
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".