Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Initialization Logic: How to implement in a ejb module

843830Apr 16 2008 — edited Apr 16 2008
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2008
Added on Apr 16 2008
4 comments
167 views