I used JBoss-eap-as 4.2 and Postgres8.1
Copy the datasource file from
jboss-eap-4.2\jboss-as\docs\examples\jca
Or in you case it could be
jboss-as\docs\examples\jca
Into the deploy folder of your configuration.
jboss-eap-4.2\jboss-as\server\default\deploy
or
jboss4.x\server\default\deploy
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/ ).
More Here
Courtesy:http://ravishbhupesh.wordpress.com/2008/05/06/connect-to-ssl-enabled-database-via-jboss/
0 comments:
Post a Comment