# Take a copy of this, modify it and run it to install the postgresql driver

# location of the downloaded driver

set driver=postgresql
set module=org.postgresql
set resource=/Users/mike/bedework/quickstart-3.10.dev/jboss-5.1.0.GA/server/default/lib/postgresql-8.4-701.jdbc4.jar

connect 

module add --name=$module --resources=$resource --dependencies=javax.api,javax.transaction.api

/subsystem=datasources/jdbc-driver=$driver:add(driver-name=$driver,driver-module-name=$module)
/subsystem=datasources/jdbc-driver=postgresql:add(driver-name=postgresql,driver-module-name=org.postgresql)