Using 3.2.2RC4. Same problem under redhat linux and macos X. Note later I explain
that this behaves differently with the client running in the same jvm vs. running in
a different jvm.


In a value object class (MeetingDateValueObject), I do the following:

>MeetingDateValue meetingDateValue = Factory.getMeetingDateValue();
>System.err.println("DEBUG: MeetingDateValueObject.update() id value before: " + getId());
>boolean temp = meetingDateValue.update(protectionMap,this);
>System.err.println("DEBUG: MeetingDateValueObject.update() id value after: " + getId());


meetingDateValue is a stateless session bean. "id" is a property of the value object
and the primary key of the underlying entity bean. the "update" method is supposed to
set the id value, but "getId()" returns null before and after the update.


In the called session bean, I do the following (it is a facade for the entity bean):

>public boolean update(ProtectionMap protectionMap,MeetingDateValueObject meetingDateValueObject) {
> MeetingDateHome meetingDateHome = Factory.getMeetingDateHome();
> System.err.println("DEBUG: meeting date value object id before: " + meetingDateValueObject.getId());
> meetingDateHome.create(meetingDateValueObject);
> System.err.println("DEBUG: meeting date value object id before: " + meetingDateValueObject.getId());
> return(true);
>}


MeetingDateHome is an entity bean. The first debug message indicates that the "id"
property in the passed value object is null, which is correct. The second debug message
returns an accurate number, reflecting that the entity bean is properly setting the
value of id in the value object.


So, given that the entity bean exits with the value object "id" property having an accurate
value, why does the second debug message in the session bean still return a null
value for the "id" property?


An important consideration here is that this only happens if the client calling the session
bean is running in a different JVM. If they are running in the same JVM, the value in
the second debug message of the session bean is set accurately.


Will appreciate any insight.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to