(
JBoss AS 4.2.2.GA)
(Oracle 10.2)
I currently define my DataSource in $JBOSS_HOME/server/default/deploy/oracle-ds.xml, which looks like this:
My web application (war packaged) WEB-INF/web.xml has:
And of course the corresponding WEB-INF/jboss-web.xml:
Which allows me to get a DataSource as follows:
This all works. However, I would prefer to define my DataSource in my web application's META-INF/context.xml as is done in (standalone)
Tomcat, something like this:
I have been unable to get this to work. Does JBoss AS use the context.xml? If so, how do I define my DataSource there?
If I have simply missed the relevant section of the manual and somebody can point me to it, I would be grateful.
[ August 21, 2008: Message edited by: Stephen Byrne ]