0 Replies Latest reply on Oct 22, 2005 12:00 PM by Philipp Meier

    Run method on startup of appliation.

    Philipp Meier Newbie

      I know the "hack" to deploy a war in an ear and listen to the war application lifecycle to run a method on application startup. I wonder if there is a more natural way to do this with ejb3. It's overkilll to have a complete servlet container just for this plain simple functionality. I thought of a mbean to deployed with the ear which run on the start of the application. Does anybody have some code for this?