[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss DataSources Down

stanley1610 do-not-reply at jboss.com
Tue Aug 18 23:14:30 EDT 2009


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#4250286

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250286



More information about the jboss-user mailing list