1 Reply Latest reply on Apr 18, 2005 6:22 PM by Willie Slepecki

    How to deploy

    Willie Slepecki Newbie

      i inherited a jboss servlet and was given charge with fixing what the other company screwed up. after reading my Learn Java in 21 days book, (im a PHP, c# programmer, not java) i fixed everything and got it going. ok great happy me. now i have another problem, this servlet is a database servlet that we sell and deploy in various customer locations. my problem is i can't figure out how to keep the file that contains the database connection information (applicationContext.xml) outside the war file so i don't have to compile and create a new war file for each customer.

      here is the snippet of my build file that generates the war:

      <target name="war" depends="compile">
       <war destfile="${dist.dir}/myProduct.war" webxml="${basedir}/dd/web.xml">
       <lib dir="${lib.dir}">
       <include name="**/*.jar"/>
       </lib>
       <classes dir="${build.classes.dir}" />
       </war>
       </target>


      i notice sar distributions in my jboss install that had all the files under a sar directory, like jboss-hibernate.sar. can i do that with my program so i can edit those config files per customer? how?

      thanks gals and guys.