Menu

#129 Support for upackaged J2EE modules

v2.4.4
open
5
2001-12-11
2001-12-11
No

I have added support for deployment of unpackaged J2EE
modules, EARs, EJB-JARs and WARs to the 2.4 branch for
inclusion in the 2.4.4 release. This goes from the
current extreme of copying everything to NO copies of
anything. The J2EE module must be completely
unpackaged.

An EAR must have the modules referred to by the
META-INF/application.xml descriptor as unpackaged
EJB-JARs and WARs. The only jars allowed are
those referred to by module manifest Class-Path
attributes. Because these are not copied, you could
see problems on redeployment if you update the module
Class-Path jars and then redeploy the module by
touching/updating the deployment descriptor.

To enable deployment of an upackaged module add its
directory to the AutoDeployer URLs attribute. The
following G:/pkgs/eartest.ear entry:

<mbean code="org.jboss.ejb.AutoDeployer"
name="EJB:service=AutoDeployer">
<attribute name="Deployers">
J2EE:service=J2eeDeployer;
JCA:service=RARDeployer
</attribute>
<attribute
name="URLs">../deploy,../deploy/lib,G:/pkgs/eartest.ear
</attribute>
</mbean>

Is an upackaged ear that contains an upackaged
eartest.jar EJB-JAR and an upackaged eartest.war WAR:

eartest.ear 921>ls
META-INF/ eartest.jar/ eartest.war/

Discussion


Log in to post a comment.