[jboss-user] [JNDI/Naming/Network] - META-INF/context.xml

ozguy do-not-reply at jboss.com
Fri Mar 14 03:18:42 EDT 2008


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136525#4136525

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136525



More information about the jboss-user mailing list