users@glassfish.java.net

Re: How to create session bean?

From: <glassfish_at_javadesktop.org>
Date: Wed, 12 Aug 2009 12:35:11 PDT

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