I used JBoss-eap-as 4.2 and Postgres8.1
Copy the datasource file from
Or in you case it could be
Into the deploy folder of your configuration.
Provide the connection url, username and password :
In case of postgres url is :
sslfactory=org.postgresql.ssl.NonValidatingFactory&a m p; “
NOTE : DONT GIVE SPACE IN &a m p; OTHERWISE IT WILL NOT WORK, i HAVE TO DO THIS OTHER IT WILL NOT HAVE APPEARED IN THIS BLOG. THANX
Remember in this case there is no client-side authentication. In case you want to have a client-side authentication then you need to have a digital Certificate given by a certifying authority or you can either generate one for your self ( I have explained about how to generate a keystore in my previous post http://ravishbhupesh.wordpress.com/2008/05/06/enabling-ssl-on-jboss-2/ ).