Hi Sven,

----- Original Message -----
From: "Efftinge, Sven" <[EMAIL PROTECTED]>
To: "'OJB Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 10:01 AM
Subject: [PB]many persistence broker instances


> Hi,
> When I call:
>
> inst = PersistenceBrokerFactory.createPersistenceBroker(new
> PBKey("repository.xml"));
> // doing some selects,updates deletes here
> // the App creates 2 PBs
>
> inst.getCollectionByQuery(new QueryBySQL(clazz,"SELECT * FROM
> mytable"));// the App creates 6 PBs here
>
> inst.close();
>
>
> The application instanciates 6 persistence broker (allthough there
where
> allready two created before)
>
> I use proxies for references and mytable has 14 references.
>
> Is this a normal behavior?

Yes, PB provide many service methods, thus OJB graps instances from
the pool for intern use.

regards,
Armin

>
> Sven
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to