The same web.xml file should be ok, but you'll need a jboss-web.xml file there as well 
to configure the context and any external references that are needed (like your Oracle 
jdbc reference).  You can lookup the format for the jboss-web.xml in the jboss/doc/dtd 
directory, but here's a sample snippet:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
 "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd";>

<jboss-web>

    <!-- Resource references -->
    <context-root>/</context-root>
    <resource-ref>
        <res-ref-name>jms/TCF</res-ref-name>
        <jndi-name>ConnectionFactory</jndi-name>
    </resource-ref>

    <!-- EJB References -->

</jboss-web>

You'll need to figure out how to add the jdbc pieces here (look at the data source 
sample code) in order to resolve your jdbc reference issue.  Since I'm not accessing a 
database from my servlets, I can't give you the sample code you need.

kirk

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

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


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to