This is the only standards-compliant way to have something happen on .ear or .war startup.
Yes, it is kludgy.
Glassfish also provides various lifecycle listeners that may help you.
Best,
Laird
[Message sent by forum member 'ljnelson' (ljnelson)]
http://forums.java.net/jive/thread.jspa?messageID=233897