Just put the following in your main method:

    EOModelGroup.defaultGroup().addModelWithPathURL(new File("/Path/To/Your/Model.eomodeld").toURL());
    EOEditingContext editingContext = new EOEditingContext();

ms

On Jan 27, 2006, at 3:35 PM, John Huss wrote:

Is it possible to use my EnterpriseObjects classes and EOModel in a regular Java application without any web interface?

How do I get a connection to the database and get an editing context?

My ultimate goal is to write a little command-line program that will import text files into a database at scheduled times.  If this is a bad approach I'm open to other ideas.

Thanks,
John 
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to