1 Reply Latest reply on Apr 23, 2006 4:25 PM by gavin.king

    Roles & Scope

    pmuir

      In the Seam documentation it states in 6.1 that if 'no scope is explicitly specified, the default depends on the component type' however when I don't specify a scope the scope on the component is set to UNSPECIFIED. I'm using CVS20060418.

      @Name("admin")
      @Stateless
      @Interceptors(SeamInterceptor.class)
      @Roles({
       @Role(name="countryAdmin"),
       @Role(name="instanceAdmin")
      })
      


      gives a log of

      2006-04-22 13:31:46,563 INFO [org.jboss.seam.Component] Component: countryAdmin, scope: UNSPECIFIED, type: STATELESS_SESSION_BEAN, class: uk.co.splendid.sms.facade.admin.AdminBean, JNDI: sms/AdminBean/local
      2006-04-22 13:31:46,568 INFO [org.jboss.seam.Component] Component: instanceAdmin, scope: UNSPECIFIED, type: STATELESS_SESSION_BEAN, class: uk.co.splendid.sms.facade.admin.AdminBean, JNDI: sms/AdminBean/local