Hi Armin,

> think in current CVS this class was removed or renamed 
> (PBSessionBean?).

I just did a completely clean checkout and it is still called
PersistenceBrokerBean.

> 1. Do the same as using EntityBeans.
> Write an ArticleManagerSessionBean, manage your articles 
> using in repository1 (this was passed into to bean via 
> env-entry). Write an InvoiceManagerSessionBean, manage your 
> invoices using repository2 (this was passed into to bean via 
> env-entry too). Write an OrderManagerSessionBean using both 
> session beans to handle orders.
> 
> 2. Write an ObjectManagerSessionBean handle all
> your objects. Pass repository (or PBKey) on every method
> call (bean.store(PBKey, object))

So the PersistenceBrokerBean as it is would be obsolete. It is
"statless" and setting the PBKey via env-entry before any call may be
slow down performance.

So maybe it would be better to use a simple statless wrapper around a
statefull PersistenceBrokerBean for every application...

Thimo

--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to