The only portable container-startup callbacks in Java EE are those defined within web applications.
If you need some alternative mechanism outside the webtier you'll have to rely on a vendor-specific
feature.This is an area we are planning to address in the next version of the EJB specification.
--ken