Referring to this SO thread - Java: Returning XMLType Data from StoredProcedure, Usage of ojdbc6.jar xdb6.jar xmlparserv2.jar for Java to PLSQL interaction [ojdbc6.jar, xdb6
Here's how I declare an Oracle datasource (for calling pl or executing xqueries)
Injecting the Datasource (in a stateless ejb)
@Resource(name = "java:jboss/datasources/xmlDatasource")
private DataSource productDS;
Declaring the datasource in standalone.xml
jdbc:oracle:thin:@xxx:1521:xxx
oracle.jdbc.driver.OracleDriver
oracle
0
10
xxx
xxx
oracle.jdbc.OracleDriver
Module definition
Add the module dependency to my ear application (which has the stateless ejb inside..) using maven (or edit your manifest.mf and add the module name)
oracle.jdbc