1 Reply Latest reply on May 16, 2009 12:27 AM by gonorrhea

    method scope

      hi everyone,
              
                I have one doubt regarding declaration of method scope.If we want to declare a class has stateful session bean we will do like this
                    
                       @Scope(ScopeType.SESSION)


      now i want to declare a method has stateless,how can i do this.can any one help me.


      Thanks in advance

        • 1. Re: method scope
          gonorrhea

          Use @Stateful to annotate a class as SFSB (it needs to implement a local/remote interface as well).


          Use @Stateless to annotate a class as SLSB (it needs to implement a local/remote interface as well).


          see JSR 220.