• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: JavaClient RMI and Validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >JavaClient RMI and Validation (From: David Avendasora <email@hidden>)
 >Re: JavaClient RMI and Validation (From: Florijan Stamenkovic <email@hidden>)
 >Re: JavaClient RMI and Validation (From: David Avendasora <email@hidden>)
 >Re: JavaClient RMI and Validation (From: Florijan Stamenkovic <email@hidden>)
 >Re: JavaClient RMI and Validation (From: David Avendasora <email@hidden>)

  • Prev by Date: Staying with WebObjects
  • Next by Date: Re: Staying with WebObjects
  • Previous by thread: Re: JavaClient RMI and Validation
  • Next by thread: Custom Main Component
  • Index(es):
    • Date
    • Thread