I have a Local Tx Datasource for PostgreSQL. When I deployed the EJB with PU, the
Datasource is registered but the status is down.
<?xml version="1.0" encoding="UTF-8"?>
| <persistence version="1.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
| <persistence-unit name="DukeBankEjbPU"
transaction-type="JTA">
| <jta-data-source>java:/DukeBankPostgreSQL</jta-data-source>
| <exclude-unlisted-classes>false</exclude-unlisted-classes>
| </persistence-unit>
| </persistence> persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
| <datasources>
| <local-tx-datasource>
| <jndi-name>DukeBankPostgreSQL</jndi-name>
|
<connection-url>jdbc:postgresql://localhost:5432/dukebank</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>postgres</user-name>
| <password>password</password>
| <min-pool-size>5</min-pool-size>
| <max-pool-size>20</max-pool-size>
| <idle-timeout-minutes>5</idle-timeout-minutes>
| </local-tx-datasource>
| </datasources> jboss-ds.xml
Please help. Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250286#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...