Question: jboss how to configure datasource?
Answer: In Jboss Administration console you can press New datasource button, enter datasource name and jndi name then click next button.
step 2 : select postgresql driver. click Next.
Step 3: enter connection URL jdbc:postgresql://localhost:5432/template1 , Username and Password.
finally click Done.