Hi again,

Oliver wrote:
> I want to build an application-server-like
> thing that allows several clients to connect to the same
> database.

Hope I catch the sentence of this, you got
problems using ODMG with several clients
although all clients do a
Implementation odmg = OJB.getInstance();
call?
I don't understand why (it's monday ;-), could you
explain a little more?

regards,
Armin

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 10:39 AM
Subject: RE: Why does odmg.OJB try to be a singleton?


> Hello Armin,
>
> > -----Original Message-----
> > From: Armin Waibel [mailto:[EMAIL PROTECTED]]
>
> > which version do you use?
> > I think >0.94 OJB isn' a singleton.
>
> current cvs HEAD:
>
>     /**
>      * private Constructor: use static factory method
>      * getInstance() to obtain an instance
>      */
>     protected OJB()
>     {
>         ojbTxManager = TxManagerFactory.instance();
>     }
>
>     /**
>      * Return new instance of the {@link org.odmg.Implementation}
class.
>      */
>     public static Implementation getInstance()
>     {
>         OJB implementation = new OJB();
>
>
implementation.setConfigurator(PersistenceBrokerFactory.getConfigurator(
));
>         return implementation;
>     }
>
> So it is not really a singleton, but almost.
>
> Olli
>
> ---------------------------------------------------------------------
> 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]

Reply via email to