When you've finished with the PB you should call PB.close();
HTH
Jin
----- Original Message -----
From: "Efftinge, Sven" <[EMAIL PROTECTED]>
To: "'OJB Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 9: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?
>
> 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]>