You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Goncalo Luiz <ge...@rnl.ist.utl.pt> on 2003/04/27 17:53:54 UTC

Dispair - TAKE2

I've now upgraded to OJB 1.0rc2.
I used to get OJB instances with OJB.getInstance() to get the singleton
instance of OJB.
But in the OJB1.0rc2 API I read:

"Return new instance of the Implementation class."

Is not OJB a singleton anymore ? How can I access the current instance of
OJB ?


Thank you so much.
Gonçalo D. Luiz (gedl@rnl.ist.utl.pt) | Tlm: 933 480 059



Re: Dispair - TAKE2

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Goncalo,

----- Original Message -----
From: "Goncalo Luiz" <ge...@rnl.ist.utl.pt>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Sunday, April 27, 2003 5:53 PM
Subject: Dispair - TAKE2


> I've now upgraded to OJB 1.0rc2.
> I used to get OJB instances with OJB.getInstance() to get the
singleton
> instance of OJB.
> But in the OJB1.0rc2 API I read:
>
> "Return new instance of the Implementation class."

Yes, I think this changed since version 0.9.7.
(Change was necessary to handle multiple
databases/connections)

>
> Is not OJB a singleton anymore ?
correct!

>How can I access the current instance of
> OJB ?

In the same way as before.
You could hold an instance by your own.

regards,
Armin

>
>
> Thank you so much.
> Gonçalo D. Luiz (gedl@rnl.ist.utl.pt) | Tlm: 933 480 059
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>