Have you tried something like JDBCTEST to see if you really can contact your db2 server from the machine where you are running JBoss?
This is from our jboss.jcml and works with DB2.
we are working on that. I would love to see your jboss.jcml and standardjaws.xml to see your whole db2 setup. Currently we have problems configuring the CLI enviroment, just can't bind with the database.
Do you run jboss and db2 on the same box? if so, is there any special setup needed?
Any clues would be very helpfull.
No changes in standardjaws.xml.
Has been using JBoss and DB2 both on same box as on different boxes.
For us to get DB2 running we also added some classpath varibles to the jboss.conf file. I have attached a copy of it. It also contians settings for Oracle and Sql Anywhere but you should be able to just take the DB2 section.
Here is the file, first time posting a attached file.