I tried to set up p2spy, on jboss 6.1 final. So, I altered the <driver-class> in oracle-ds.xml and configured the oracle driver in spy.properties, and fired up jboss. Fine. Nothing captured however. Application still working.
So decided to revert my change to the oracle driver, but I also made a deliberate error in oracle-ds.xml which I thought would stop jboss from speaking to Oracle.
It does however work. I can log in to the application, make changes, and the changes persists across jboss restarts.
I would like to understand where else database connectivity could be configured?
Does hibernate have it's own data source configuration when it's running in jboss?