Ups! OK, now I found the class. This is not the way I mean. Doing OJB coding on client side breaks the separation of the layers.
Have a look in jakarta-ojb\src\ejb\org\apache\ojb\ejb there you could found all my sample beans and associated client classes. Most of the PB-examples extends PBBaseBeanImpl and using xdoclet for bean generation. to build the examples do call bin\build.bat jar first (we need ojb classes) then call ant -buildfile build-xdoclet.xml regards, Armin ----- Original Message ----- From: "Thimo K�nig" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 2:31 PM Subject: AW: PersistenceBrokerBean 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> -- To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
