users@jersey.java.net

Re: Specification question regarding packaging

From: ljnelson <ljnelson_at_gmail.com>
Date: Thu, 22 Apr 2010 03:29:24 -0800 (PST)

On Thu, Apr 22, 2010 at 5:48 AM, Paul Sandoz [via Jersey]
<ml-node+4941865-1853869462-210534_at_n2.nabble.com> wrote:
> 2.3.2 Servlet
>
> A JAX-RSĀ application is packaged as a Web application in a .war file. The
> application classes are packaged in WEB-INF/classes or WEB-INF/lib and
> required libraries are packaged in WEB-INF/lib. See the Servlet
> specification for full details on packaging of web applications.
>
> The above is only referring to a servlet and not in general to an EE 6
> container.

Sure. I just wanted to make sure that even though the specification
says that resource classes must be present in WEB-INF/classes or
WEB-INF/lib, it is actually wrong--such classes may also be present in
an enclosing ear file's lib directory.

> Yes, classes in the ear will be scanned. So it should be possible to
> haveĀ no-interface view SSBs that are resource classes in the ear.

Thanks.

> In EE 6 there seems to be much less need for an ear, Do you require it?

I think I do. I have resource adapters and multiple war files that share EJBs.

Best,
Laird

-- 
View this message in context: http://jersey.576304.n2.nabble.com/Specification-question-regarding-packaging-tp4941418p4942197.html
Sent from the Jersey mailing list archive at Nabble.com.