On Mon, 19 Jun 2000 20:01:19 +0530, Srinivas Ganapur
<[EMAIL PROTECTED]> wrote:
>As per the EJB specs when ever a Bean instance is not associated with any
>EJB Object or if it gets passivated, its bean instance goes into the
>Instance Free Pool.  And each instance is assigned to EJB Object as per
>requirement , by the container.    If new EJB Object is created, the old
>values(I call it dirty data ! ) of bean instance are assigned or carried
>onto the next  EJB Object, this seems to be a problem !!
<snip>

As you note, the EJB spec makes an explicit note that instances may be
reused.

It does not make any explicit notes that initial values are to be reset.

Hence, implicitly you as a bean developer knows that you will have to
handle this in ejbCreate in order to make portable beans. Some
EJB-servers may be forgiving and will reset these values, or will create
a new instance each time, but some may not.

There is no bug in the spec, and there is no bug in the EJB-server you
are using. The only bug here is that you are not taking care of the bean
contract properly by not setting all CMP fields upon create.

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to