Re: Application Startup...
Re: Application Startup...
- Subject: Re: Application Startup...
- From: Zak Burke <email@hidden>
- Date: Fri, 27 Jan 2006 18:07:49 -0500
Colin Shreffler wrote on 1/27/06 5:33 PM:
In my wo application, I have a class that was created by the development
environment (when the project was created) called Application.java.
I am trying to add a start up routine to my application (to read
information in a Properties file) and thought that the best place to put
this would be in the constructor of this class.
It sounds like you have the right pieces in place so it seems odd that
methods inside the constructor aren't being called. Here is the top of
my Application.java file for comparison:
public class Application extends WOApplication
{
public static void main(String argv[])
{
try
{
WOApplication.main(argv, Application.class);
}
catch (Exception e)
{
e.printStackTrace();
}
}
public Application()
{
super();
initMethod1();
initMethod2();
// etc
}
}
HTH,
zak.
_______________________________________________
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