users@glassfish.java.net

Re: ejb3.1, singleton and injections

From: <glassfish_at_javadesktop.org>
Date: Wed, 17 Feb 2010 07:13:49 PST

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.
[Message sent by forum member 'ksak' (kenneth.saks_at_sun.com)]

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