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

    Is it possible to configure DataSource inside the war file ?

    Frank Newbie

      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
          Peter Johnson Master

          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>