Write a Java CORBA server. CORBA is part of J2EE. Using CORBA gives this
location transaprency.


regards,


-Robert


-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Subrahmanyam A.V.B.
Sent: Sunday, February 13, 2000 3:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Singleton EJB's?


Hi

>     1.  Implement your singleton as a vanilla Java class with a static
>         accessor function that returns a reference to the singleton
>         instance, constructing it if necessary.

Since there will one instance of this singleton per JVM, how do make
sure multiple instances across JVMs in a container are consistent?

Subrahmanyam

>     2.  Implement the public API to the singleton using a Stateless
>          Session bean.  At the start of each method implementation, call
>          the static accessor to get a reference to the singleton, then
>          delegate the call to the appropriate method of that object.
>
> > -----Original Message-----
> > From: Robert Claeson [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 11, 2000 7:26 PM
> > Subject: Singleton EJB's?
> >
> >
> > I've yet to come up with a good solution on this one myself, so I'm
turning
> > it over to you now: what would be the best approach to implement the
> > equivialent of a singleton EJB - i.e. one that contains shared data for
all
> > sessions WITHOUT going through a database. I'm looking for something
like a
> > singleton stateful session bean. A typical example would be a community
web
> > site with two or more web servers working against an application server,
> > where it would be beneficial to keep shared data in memory on the app
> > server, i.e. things like the current number of users and the like.
> >
> > --
> > ?
> >
>
>
===========================================================================
> 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".

--
----------------------------------------------------------
Letting U=Universal, and given God=U and Unreason=U,
        Unreason=God                            --- Q.E.D.
Check me at http://www.Subrahmanyam.com
----------------------------------------------------------

===========================================================================
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".

Reply via email to