users@glassfish.java.net

Call Constructor of Web Service on Glassfish Container load

From: Patel, Ronak \(US SSA\) <"Patel,>
Date: Wed, 20 Sep 2006 15:02:30 -0400

Hello all,

I just upgraded to the latest Glassfish Milestone build. I am looking for the container to call my no-arg constructor on container load time (i.e. when I start Glassfish).

I tried the <load-on-startup> option in the web.xml file and the @postConstruct annotation, but the container fails to call the constructor when Glassfish starts.

Is there some thing that I am not doing correctly? Is this feature currently supported in Glassfish?

Any help would be greatly appreciated,

Ronak Patel

Software Engineer; BAE Systems

ronak.patel_at_baesystems.com