Can't you just look up the Datasource through JNDI?
Yes but the jndi definitions are in the oracle-ds.xml and I need to do something like:
DataSource dataSource = null;
InitialContext naming = new InitialContext();
dataSource = (DataSource)naming.lookup("java:/OracleDS");
Connection aConn = dataSource.getConnection();
within JUnit to get the DataSource that jBoss returns.
However, I do not know how to run JUnit within the jBoss environment.
Thanks! That is exactly what I am looking for and there is also good examples on how this can be done in the book JUnit In Action.