Hi!
Tobias Frech wrote:
> We exprierenced the following strange effect:
> >From time to time freshly created entity beans are already filled with
> values from other entities.
>
> I wonder if either jBoss or the EJB spec guarantees, that a new entity
> is instantiated and thus the properties are empty. Right now is seems to
> me, that jBoss is reusing entities. If this is EJB spec compliant I'd
> like to warn all you guys out there not to make the same mistake as we
> did.
This is according to the spec. It's a direct side effect of pooled
entity bean instances. Set the pool size to 0 for an easy fix. You might
get worse performance because the server will have to instantiate the
entity all the time, but that's a tradeoff you have to make.
regards,
Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]