Rickard,
just out of curiousity,
you remember your "rockit" friends..? they would say that pools were
unnecessary in java and that beans should be created anew everytime.
We haven't tried a server where all pools are fake (as in stateful) and let
that rip... I am curious now.
Of course these are only the container pools for beans
marc
|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Rickard Oberg
|Sent: Tuesday, January 30, 2001 8:47 AM
|To: jBoss
|Subject: Re: [jBoss-User] Dirty Entity bean?
|
|
|Hi!
|
|Luis Ochoa wrote:
|> * set pool size to 0 (zero). This will cause new instances to be caused
|> all the time, hence avoiding "old" data to be used
|> * make sure you initiate all fields to proper values
|>
|> -->where do I do this: ejbCreate?
|
|Correct. Note that if you have a pool size above zero, then the values
|in the fields will not be correct(/the initial ones for an instance) in
|ejbActivate, since an instance may be reused from the pool. However,
|before a business method is called this will be fixed due to ejbLoad
|being called.
|
|/Rickard
|
|
|
|--
|--------------------------------------------------------------
|To subscribe: [EMAIL PROTECTED]
|To unsubscribe: [EMAIL PROTECTED]
|List Help?: [EMAIL PROTECTED]
|
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]