1 Reply Latest reply on Oct 1, 2007 12:00 PM by peterj

    Is it possible to configure DataSource inside the war file ?

    francis1970

      Hi all,
      I'd like to know if it's possible to include my DataSource file (myoracle-ds.xml) directly inside the war file, instead of including the file in the "deploy" directory.........
      Thanks
      Francesco

        • 1. Re: Is it possible to configure DataSource inside the war fi
          peterj

          Actually, there is no logical place for the *-ds.xml file within a WAR file. Instead, place the WAR and the *-ds.xml file within an EAR file. Then add a WEB-INF/application.xml file with contents like:

          <application>
           <module>
           <web>
           <web-uri>xxx.war</web-uri>
           </web>
           </module>
          </application>


          and a META-INF/jboss-app.xml file containing:

          <jboss-app>
           <module>
           <service>xxx-ds.xml</service>
           </module>
          </jboss-app>