users@glassfish.java.net

Glassfish, EAR, Maven build

From: <glassfish_at_javadesktop.org>
Date: Tue, 28 Jul 2009 07:34:20 PDT

Hi,

I am migrating from tomcat to a Glassfish cluster. My current application is a spring based web app, packaged as a .war. I have various packages, built as .jar files which are dependencies in the build for the web app. I'm using maven to build each jar package and the web app .war.

I am clustering this app with Glassfish. I would like to ensure that the .jar files I have don't get duplicated across the cluster. i.e. I want the jars in one place and the web app clustered.

My question is how do I configure my application.xml file in the .ear to do this? When I build the .war file I require some of the jars as dependencies so I end up with everything packages in a .war which is in turn packaged in a .ear. I want my jars and war to be separately bundled in the .ear file.

Many thanks

John
[Message sent by forum member 'jhunsley' (jhunsley)]

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