So, we can summary what we learn from this discussion thread like this:
- EJB developers must keep in mind that
passed-by-value objects can be passed by reference
during a local call.
- Portable EJB methods should be aware of this fact and:
- avoid to modify any passed-by-value objects.
- return a copy or an imutable interface of
returned-by-value objects
- According to the EJB spec (EJB 1.1 spec, section 18.2.3)
this behavior should not happens, but it does on many servers for
optimization purposes, which is a break in the EJB spec.
By the way, a FAQ is really missing in this newsgroup, especially for
newcommers.
Thibault Cuvillier.
http://www.valtech.com
>
[cut]
===========================================================================
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".