1 Reply Latest reply on Nov 24, 2012 4:00 AM by Ganesh Neelekani

    Loading 2 war files

    Ganesh Neelekani Newbie

      Hi All,

       

       

      I have 2 .war files LDIFactsWeb.war and LDIFactsWeb-NA.war ,And I am using 2 repository in jboss 7 server repository and reposiory-NA,and using only one database in my project..

       

       

      While deploying one LdiFactsWeb.war file it is taking files from repository and creating .lock files.

      And deploying LDIFactsWeb-NA.war ir is again taking files from repository folder.LDIFactsWeb-NA.war shold take the files from reposiory-NA.So it giving repository exception.

       

      It should take files from different repository folder.

       

      Can any one explain how to tackle this issue,Or setting in configuration files for accepting different repository.

       

       

      Thanks and Regards

      Ganesh Neelekani

      Team agile

      India

        • 1. Re: Loading 2 war files
          Ganesh Neelekani Newbie

          Hi All,

           

          I  Solved  this by defining different repository for different .war files in drools-guvnor WEB_INF/beans.xml define different repository path in location

           

          Jboss Drools Repository Update for NA instance ( For Review only):

           

          1. Copy drools-guvnor.war to working directory
          2. jar –xvf drools-guvnor.war
          3. vi ./WEB-INF/beans.xml
          4. update the repository directory as described below:

             

          <guvnorRepository:properties>

          <s:entry><s:key>org.drools.repository.configurator</s:key><s:value>org.drools.repository.jackrabbit.JackrabbitRepositoryConfigurator</s:value></s:entry>

                <!--  the root directory for the repo storage the directory must exist. -->

          <!--<s:entry><s:key>repository.root.directory</s:key><s:value> /opt/jboss/jboss_711/repositoryna </s:value></s:entry>-->

          </guvnorRepository:properties>

           

          which stops the using of same database

           

           

          Regards

          Ganesh N

          Team Agile

          India