1 Reply Latest reply on Nov 13, 2005 7:46 PM by gavin.king

    @Startup annotation...

    patrick_ibg

      Can I safely use this for application components without specifying the "depends" parameter? What I probably want is for all the built-in components to be started before my application component is invoked. Not sure how to do this with the semantics of "depends".



        • 1. Re: @Startup annotation...
          gavin.king

          Should be able to, unless your application component does in fact depend upon one of the built-in components.

          Note that depends is ONLY needed if the dependency is implicit (ie. you access something the other component puts in JNDI or something). If you have an explicit dependency using @In or Component.getInstance(), depends is never needed, since Seam can take care of starting things in the "right" order.