users@glassfish.java.net

Re: RE: EJB3 interfaces with _at_Remote and _at_WebService annotations.

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 Aug 2009 23:22:39 PDT

Hi,

I am not sure their is a clear answer for this. It seems the Java community itself is divided in two groups, the ones that want to allow this mix of annotations and of course, those that want to keep them separated.
See also the comments of this post: http://www.pascalalma.net/2009/02/20/using-openejb-for-ejb3-testing-with-maven2/. They have recently added this 'feature' to OpenEJB.

If you want to be sure your code works for [i]every[/i] application server I would separate the interfaces and annotations and not mix them up.

HTH.

Regards,
Pascal
[Message sent by forum member 'paskal' (paskal)]

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