On Tue, 7 Nov 2000 09:52:19 -0000, Peter Delahunty
<[EMAIL PROTECTED]> wrote:
>This is quite interesting. I only have two business method on my bean....
>setData() and getData().
>
>each of the methods pass in or return respectively a value object which is
>immutable (but only because I made it so... no set methods) so does the app
>server and for that matter any other app server inc JBoss detect that the
>object is immutable and pass by reference rather than by value. My object
>will be made up of primitives and Strings.

jBoss will not detect this, and I hope noone else does it either. The
thing is that we have no way of knowing that your object is immutable,
even if you only have get-methods. Only having get-methods is not an
insurance that the object is immutable.

<vendor>
In your case I would recommend turning off call copying for that bean in
jBoss. This is done by changing the container configuration that the
bean uses. If you have several beans with the same pattern I would
recommend making one config. that all those beans uses.
</vendor>

/Rickard

--
Rickard �berg

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