Assuming the big idea is mapping an init
and a shutdown
method to a Java interfaces in the Enterprise standards...
It turns out there are four alternatives (and three vendor specific ones):
- EJB 3.1 @Startup
- Startup Servlet
- ServletContextListener
- Resource Adapter to Perform as a Startup Class