Man you are bitchin today :)

I'm pretty sure you're only required to do pass-by-value for calls through the remote interface. This would be a significant performance hit if set and get inside of the bean always did a copy. Besides, Collections returned from getRelationship are not copies.

FYI, I know you don't care now, but we will look into the Tomcat virtual-host thing you bitched about a few emails ago too.

Bill

Stefan Arentz wrote:


Say I have a bean with two date fields, dateA and dateB. Then I do this:


ejbCreate()
{
Date date = new Date();
setDateA(date); date.setTime(date.getTime() + 1000);
setDateB(date);
}


The result in the database is that the value of dateA is also set to dateB. Now I know Java works by reference, but this just seemed odd. I thought Entity Beans hold their own private copy of fields.

This is on 3.2.2.

S.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-- ================ Bill Burke Chief Architect JBoss Group LLC. ================



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to