If you use V3 you can create an entire bean as follows :
@Stateless
public class HelloBean {
public String sayHello() { return "hello, world\n"; }
}
This uses EJB 3.1, which is only available in GlassFish V3. There is no need for deployment
descriptors or a separate interface.
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=360161