• 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
Object Store Coordinator and User Info – Is this Dangerous?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object Store Coordinator and User Info – Is this Dangerous?


  • Subject: Object Store Coordinator and User Info – Is this Dangerous?
  • From: Andrew Lindesay <email@hidden>
  • Date: Wed, 29 Oct 2008 13:36:31 +1300

Hello;

I want to put some data into the user info of an object store co- ordinator and then pull it out again in notifications.

	ec.lock();

	try
	{
		ec.rootObjectStore().setUserInfoForKey(xyz,"foobar");

		try
		{
			// do some editing context foo here!
		}
		finally { ec.rootObjectStore().setUserInfoForKey(null,"foobar");
	}
	finally { ec.unlock(); }

That should be safe should it not or am I playing with fire?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

_______________________________________________
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


  • Follow-Ups:
    • Re: Object Store Coordinator and User Info – Is this Dangerous?
      • From: Chuck Hill <email@hidden>
    • Re: Object Store Coordinator and User Info – Is this Dangerous?
      • From: Peter Vandoros <email@hidden>
  • Prev by Date: Re: Eclipse 3.4.1
  • Next by Date: wosid != session().sessionID()
  • Previous by thread: Re: java.lang.ClassNotFoundException: org.objectstyle.woproject.ant.WOFramework
  • Next by thread: Re: Object Store Coordinator and User Info – Is this Dangerous?
  • Index(es):
    • Date
    • Thread