Initialization Logic: How to implement in a ejb module
843830Apr 16 2008 — edited Apr 16 2008Hi All,
I have a EJB module in which I want to perform some initialization logic during application startup. The app is being deployed to Websphere 6.1.
I have tried adding the start up logic to the constructor of my MDB (with the assumption that it would be called once during startup) but it seems to be called twice during websphere startup :-(
I am currently using a separate war module which contains a sevelet listener to perform the startup logic but this makes my build messy and bulky.
Does anyone have and ideas how I can implement initialization logic in a container independent way would be very helpful.
Karl