0 Replies Latest reply on Mar 14, 2008 3:18 AM by ozguy

    META-INF/context.xml

    ozguy

      Hi

      Hope someone can help me out with this problem.
      I have datasource definitions in the *-ds.xml which is deployed in the default/deploy folder of Jboss.

      Now i want to use these datasource in my web app, so i have a jboss-web.xml file which looks as follows:
      jboss-web.xml
      <resource-ref>
      <res-ref-name>jdbc/questionnaire_DS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <jndi-name>java:jdbc/questionnaire_DS</jndi-name>
      </resource-ref>

      I want to use ResourceLink in the in the META-INF/context.xml to define the link to the jndi as follows:
      META-INF/context.xml







      When i startup the application. i get the Exception saying the deployment scanner was looking for the res-ref in the web.xml.
      If i put the <resource-ref> ... in web.xml it works.

      But is there a way to make it Read the context.xml file instead of complaining