users@glassfish.java.net

Re: ejb3.1, singleton and injections

From: Luca Morettoni <luca_at_morettoni.net>
Date: Thu, 18 Feb 2010 10:29:47 +0100

On 02/17/10 04:13 PM, glassfish_at_javadesktop.org wrote:

> A session bean is allowed to expose any combination of local
> interface, "no-interface" , and remote interface client views. The
> issue here is that the client is coded with the assumption that the
> target EJB component exposes a no-interface view, but the component
> definition does not expose a no-interface view.
>
> A no-interface client view is only exposed by default if the bean
> class does not expose any *other* client views. Since this bean
> exposes two, it will not have a no-interface view by default. To
> add a no-interface view explicitly, just add the @LocalBean
> annotation to the bean class. Then, the client injection should
> work. Of course, you could also just change the client to depend on
> the local or remote interface view instead.


thanks, could you explain us the usage of that annotation (or the link
to the right documentation)?

Thanks again!
-- 
Luca Morettoni <luca(AT)morettoni.net> | OpenSolaris SCA #OS0344
Web/BLOG: http://www.morettoni.net/ | http://twitter.com/morettoni
jugUmbria founder: https://jugUmbria.dev.java.net/
ITLOSUG leader: http://hub.opensolaris.org/bin/view/User+Group+itl-osug/