Re: JavaClient RMI and Validation
Re: JavaClient RMI and Validation
- Subject: Re: JavaClient RMI and Validation
- From: Florijan Stamenkovic <email@hidden>
- Date: Fri, 11 Apr 2008 13:04:13 -0400
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden