Jboss7下配置PostgreSQL数据源

在standaloneconfigurationstandalone.xml文件中的datasources节中添加添加:
[source lang="xml"]
<datasource jndi-name="epg" pool-name="cbs_Pool" enabled="true" jta="true" use-java-context="true" use-ccm="true">
<connection-url>
jdbc:postgresql://localhost:5432/epg
</connection-url>
<driver>
postgresql-9.0-801.jdbc4.jar
</driver>
<security>
<user-name>
epg
</user-name>
<password>
000000
</password>
</security>
</datasource>
[/source]

你可能感兴趣的:(PostgreSQL)