On Apr 11, 2008, at 11:15, David Avendasora wrote:
Actually, in this situation I could also postpone the RMI until
after the EO has been saved. Is there any way to tell if the EO has
been saved to the DB yet?
In your EO:
public boolean isSaved(){
EOEditingContext ec = editingContext();
return ec != null &&
(!(ec.globalIDForObject(this).isTemporary()));
}
Thereafter it is possible to use stateless RMI to transfer the key
global ID to the server, and then on the server fetch that particular
object, and do your processing. If you want I can send you some RMI
code I use for this off list, if you think this approach could work
in your situation...
Note however that this will not transfer the latest changes to the EO
over to the server, you will need to work with the last saved state.
F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]