users@glassfish.java.net

Re: EJB pass-by-reference or value

From: <glassfish_at_javadesktop.org>
Date: Thu, 17 Jun 2010 19:58:11 PDT

When using String as the param type and return type, I got the same result as you. I guess it was because string is immutable and thus treated as a special case. When using StringBuffer (or other mutable types), instead of String, I got different objects as expected.
[Message sent by forum member 'cf126330']

http://forums.java.net/jive/thread.jspa?messageID=474765