You have to create a DATASOURCE file with the same JNDI name of on the directory that you had deployed your application ( /jboss_home/server/YOUR_PROFILE/deploy ). You can find some examples on the /JBOSS_HOME/docs/examples/jca. Dont forget to change the JNDI name of the datasource.
Good Luck
Vítor Corrêa