Hi,

I would even do something like this in you application's class to keep the app 
from creating
sessions

public class Application extends WOApplication {

    public Number workerThreadCountMax() {
        return new Integer(1);
    }

    public Number workerThreadCountMin() {
        return new Integer(1);
    }

    public void setSessionStoreClassName(String aString) {
    }

    public boolean autoOpenClientApplication() {
        return false;
    }

    public boolean autoOpenInBrowser() {
        return false;
    }

    public boolean isRefusingNewSessions() {
        return true;
    }
}


--- Ken Anderson <[EMAIL PROTECTED]> wrote:

> John,
> 
> I just turn off auto-open in browser and use a normal WO project - I  
> just never put any components into it.
> 
> Ken
> 
> 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:
> > http://lists.apple.com/mailman/options/webobjects-dev/lists% 
> > 40anderhome.com
> >
> > 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/jep9816%40yahoo.com
> 
> This email sent to [EMAIL PROTECTED]
> 


Jerry Porter
Senior Software Engineer
Universal Measurement Solutions, Ltd.
Unit 90, 2150-29th Street NE
Calgary, Alberta
Canada T1Y 7G4
http://www.umsltd.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 _______________________________________________
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