1 Reply Latest reply on Mar 10, 2008 5:57 AM by Flavio Baronti

    J2EE application startup code?

    Flavio Baronti Newbie


      I'm writing a standard J2EE application composed of some stateless session beans. I have some code which should be executed at the initialization of the whole application (it basically reads some configuration files, and stores the result in static variabiles). Is it ok to put this code in the static {} portion of a stateless EJB, or is there any more appropriate place? The code must be executed once for all, so ejbCreate() is not what I need.