Is there a way to do something on a J2EE server-start? I'm using Tomcat [duplicate]
问题 This question already has an answer here : Using special auto start servlet to initialize on startup and share application data (1 answer) Closed 4 years ago . I'm trying to get a J2EE server to register (read: send some message to) with another server on its own initiative - not as a response to something. Surprisingly, I've found very little information or questions on whether there are events and/or classes to extend that will give me a handle on "server-start". I could always write a