Re: Question regarding defaultEditingContext with WebServices
Re: Question regarding defaultEditingContext with WebServices
- Subject: Re: Question regarding defaultEditingContext with WebServices
- From: Chuck Hill <email@hidden>
- Date: Thu, 26 Jun 2003 21:24:17 -0700
EOEditingContext ec = new EOEditingContext();
ec.lock();
// do what you will with the ec, fetch, insert, save, whatever
ec.unlock();
ec.dispose()
ec = null;
That seems more appropriate to your situation.
Chuck
At 08:53 PM 26/06/2003 -0700, Davindra Singh wrote:
>Umm, after spending several hours trying to figure this one out, I think
I've been able to clarify the problem.
>
>I am unable to get access to the session from the class I created. I've
created a class that extends Object just like in the calculator example,
but I am unable to access the session from that class. I've tried
accessing the default editing context and the session through various
methods, but I've failed everytime. Is there a function, or a cast, or
something I can call to get access to the current session from a standard
Java class? I've tried extending WOComponent, but that turned into a
series of errors that I won't get into.
>
>Any help would be appreciated.
>
>Thanks in advance
>
>-Dave
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.