1) copy the jdbc drvier to your %JBOSS_HOME%/servlet/default/lib eg.
mssqlserver is msbase.jar, mssqlserver.jar, msutil.jar
2) copy file from %JBOSS_HOME%/docs/examples/jca
, end with -ds.xml , eg
mssqlservler is : mssql-ds.xml
to file folder JBOSS_HOME%/servlet/default/deploy
3) change the file content to fiexed you
Now you can use it in jdni.
if you want to use connection pool , and you can
open %JBOSS_HOME%/docs/examples/jca/generic-ds.xml, you will find it is so easy