• 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: Application Startup...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Application Startup... (From: "Colin Shreffler" <email@hidden>)

  • Prev by Date: jfreechart problem?
  • Next by Date: Re: ERROR
  • Previous by thread: Application Startup...
  • Next by thread: Re: Application Startup...
  • Index(es):
    • Date
    • Thread