1 Reply Latest reply on Nov 13, 2005 7:46 PM by Gavin King

    @Startup annotation...

    Patrick Angeles Novice

      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 Master

          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.