Set up PostgreSQL using the .xml in $JBOSS_HOME/docs/examples/jca.
Then point Hibernate to the PSQL data source. (Look up documentation on how to set up Hibernate in JBoss. You'll find it on the Hibernate web site.)
Thank you very much for your timely response. But i am not able to find postgres-service.xml to map.
i am finding only postgres-ds.xml. But in this file i can't map as you suggested.
Can you clarify me on this.
The file 'postgres-ds.xml' is the file that you want to use configure your PostgreSQL datasource, the service.xml filese were the old way to do it.