users@glassfish.java.net

Re: ejb3.1, singleton and injections

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Feb 2010 06:56:54 PST

It's @javax.ejb.LocalBean. It's very similar to @Local and @Remote. This annotation is added to the bean class to expose a no-interface local view. In the typical case of a no-interface view, the class doesn't expose any other interfaces :

@Stateless
public class FooBean {
   public void foo() {}
}

Here the bean will default to expose a no-interface view. However, if the bean exposes at least
one other client view, the default no longer applies and you'll need @LocalBean if you want a
client to be able to acquire an EJB reference based on the bean class itself.
[Message sent by forum member 'ksak' (kenneth.saks_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=387403