users@glassfish.java.net

Re: Directory Deployment and Bundled Libraries

From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Sep 2008 13:48:07 PDT

Hi, Dave.

What you describe is not supported currently.

It's an interesting idea; go ahead and open an RFE for it.

The Java EE spec does not directly address directory deployment, even though it's a common feature in app server implementations. The spec does say this, on the subject of the lib directory (or library-directory setting if present):

"All files in this directory (but not subdirectories) with a .jar extension must
be made available to all components packaged in the EAR file, including
application clients. "

Because directory deployment is already outside the spec (although not in contradiction to the spec) it might not be too much of a stretch to allow directories (as well as JARs) in the lib directory to be included in the class path for directory-deployed apps only. But that would, strictly speaking, go against the spec as to exactly what in the lib directory should be available to the application.

Another approach you might consider for the classes that you control would be to deploy them in directories in the EAR (not under lib) and then refer to those directories in the Class-Path of the manifest of the components that depend on those classes. This falls within the current spec and, therefore, the current implementation.

- Tim (one of those deployment people Vince referred to)
[Message sent by forum member 'tjquinn' (tjquinn)]

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