Sorry if I'm late (and the answer already given)

The simplest way to create a command line app is to overload application.run() like this:

In file Application.java write the following method

public void run() {
    // when the framework finally calls this method everything is properly set up
    // just never call super.run() to not start the R-R-loop
    // do whatever you want in here
}

Hope this helps
---markus---

On 27.01.2006, at 21:35, 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]


Markus Ruggiero

rucotec consulting and technologies    email     mailto:[EMAIL PROTECTED]

rucotec GmbH                           web       http://www.rucotec.ch

Steinentorstrasse 8             

4051 Basel                             Mobile    +41 (0)79 508 4701

Switzerland                            Phone/Fax +41 (0)61 271 4990



 _______________________________________________
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