Re: Mysql and JDBS
Re: Mysql and JDBS
- Subject: Re: Mysql and JDBS
- From: Art Isbell <email@hidden>
- Date: Fri, 3 Jun 2005 08:40:22 -1000
On Jun 3, 2005, at 7:02 AM, Gino Pacitti wrote:
I have this in the Application constructor:
public Application() {
super();
System.out.println("Welcome to " + this.name() + "!");
System.out.println( "DefaultGroup is
"+EOModelGroup.defaultGroup());
ec = new EOEditingContext();
types = (NSMutableArray)EOUtilities.objectsForEntityNamed
(ec, "AttractionTypes");
After your DB connection problems are solved, be aware that
creating and using an EOEditingContext in your Application
constructor may cause problems. First of all, you haven't locked it
before accessing it. If you will be accessing it from various
sessions, this lack of locking will likely cause problems. Instead,
consider using an EOSharedEditingContext which will control its own
access if you use the appropriate methods with it. See its
documentation for details.
Aloha,
Art
_______________________________________________
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