users@glassfish.java.net

Re: Injection into WebStart Client not working?

From: <glassfish_at_javadesktop.org>
Date: Mon, 24 Mar 2008 06:02:17 PST

> Can you please point me to the chapter of the EJB 3.0
> spec where it is
> told that both interfaces are mandatory? I just did
> not find it, but
> maybe I am blind. Thanks. :-)

3.2.1 and 3.2.2. Just to be clear, the Local interface is required if you're exposing a Local view. Same for the Remote case. It's up to the developer whether to expose a Local view, a Remote view, or both.


>
> Also, I did not define the local interface in my
> sample but it still
> works very well on GlassFish, and the verifier did
> not even tell me that
> the remote one was missing. So is the verifier buggy?

The spec doesn't actually mandate anywhere that the bean has to expose at least one view. Of course the bean isn't very useful if it doesn't. Not technically a bug although I suppose the verifier could add a warning in this case.

 --ken
[Message sent by forum member 'ksak' (ksak)]

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