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
now i want to declare a method has stateless,how can i do this.can any one help me.
Thanks in advance
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.