Markus Wiederkehr wrote:
On Wed, 09 Mar 2005 12:37:44 +0100, David J. M. Karlsen
<[EMAIL PROTECTED]> wrote:

in ejbCreate/ejbActivate.


But I want to build the registry only once, not every time a bean gets
created or activated.
But I think the operation only "costs" the first time - and the same instance is returned all other times.

Using the transient keyword would be another option.
That's true - but you may or may not get problems depending on the appserver in question (AFAIK). I used this with JBoss (for some other private non-serializable variables - and it worked.)


-- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com

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



Reply via email to