From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Mar 2009 05:02:33 PDT
You could try using the self management framework of glassfish. The "lifecycle" type of event gets trigerred when glassfish starts up and an action mbean is automatically invoked. You could place your logic in the action mbean to do this.