8 Replies Latest reply on Aug 27, 2007 4:34 PM by Piergiuseppe Spinelli

    @Startup with EJB having multiple roles

    Piergiuseppe Spinelli Newbie

      Hi,

      let's consider the following case ;

      @Stateful
      @Name("firstRole")
      @Role(name="secondRole", scope=ScopeType.CONVERSATION)
      @Interceptors(SeamInterceptor.class)
      @Startup(depends={"otherBean"})
      public class MyBean{
      ...
      }


      Does the "@Startup" annotation allow a way to specify the name to be instanciated at Startup (i.e. "secondRole" instead than "firstRole")?