Hi Peter,

sorry for late reply - overlooked your post

Peter Wieland wrote:
Hi there,

I've got the following problem: I implemented a PBLifecycleListener to do
some initialization after objects were looked up. Everything works well as
long as I use the persistence broker I created myself and I registered the
listener with. But it does not work with proxies. When OJB materializes my
list proxies, it uses another broker instance and I have no chance to
register a lifecycle listener with this new instance. Hence, objects that
are loaded via proxies are never passed to my lifecycle listener and have no
chance to be properly initialized.

right, if your proxy materialize without running PB-tx, a new PB instance was requested to materialize the proxy objects behind the scenes. So I don't see a possibility to add your listener.

hmm, you can add a listener object as permanent listener within
constructor of PersistenceBrokerImpl sub-class.

regards,
Armin


Any suggestions?


Thanx,

Peter

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







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



Reply via email to