Monday, August 30, 2004 12:46 PM
The jBoss datasource is a service like any mBean.
You should create a xml file in your server/application/conf or server/application/deploy directory that configures the data source.
The file should containt something like:
The name of this file should be terminated with -ds.xml, for instance mydatabase-ds.xml
Please note that the paramenters connection-url and driver-class refered in this sample are to a mySQL
database. For Oracle, that parameters should be something like this:
Do not forget to include Oracle thin driver jar file in the classpath of you server or in the server/application/lib directory.