dev@glassfish.java.net

Re: [_at_V] Question on Bug 3625 on Verifier

From: Sahoo <sahoo_at_sun.com>
Date: Mon, 26 May 2008 08:04:29 -0700

Seema,

Good finding. Looks like we need to introduce a notion of client APIs,
e.g. EJB_Client_3.0 and instead of adding EJB_3.0 to web_app_2.5, we
need to add EJB_Client_3.0. What do you think?

I have now confirmed the issue.

Thanks,
Sahoo

Seema Richard wrote:
>
> Sahoo,
>
> I had a query regarding the bug about detecting non-standard
> annotations in code. This is the example that you provided for the bug.
>
> @WebService
>
> public class MyServletEndpoint {
>
> @javax.ejb.TransactionAttribute(REQUIRES_NEW) // incorrect use
>
> public void registerUser(String username, String encodedPW) {
>
> // ...
>
> }
>
> }
>
> However, since a servlet is allowed to access EJB client API, classes
> in javax.ejb package are in the classpath for a web module. Hence they
> would not be considered as non-standard annotations. Please comment on
> this. Also, please change the status of the bug from ‘Unconfirmed’ to
> ‘New’.
>
> Thanks,
>
> Seema
>