• 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: Mysql and JDBS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Mysql and JDBS (From: Gino Pacitti <email@hidden>)

  • Prev by Date: Re: Mysql and JDBC
  • Next by Date: Re: Mysql and JDBC
  • Previous by thread: Re: Mysql and JDBC
  • Next by thread: Good news: Cocoa/EOF on Tiger...
  • Index(es):
    • Date
    • Thread