postgresql-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>jdbc/GiftDevel</jndi-name>
<connection-url>jdbc:postgresql://localhost:5432</connection-url>
<connection-property name="DatabaseName">gift</connection-property>
<user-name>edross</user-name>
xxxx
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements/>
<driver-class>org.postgresql.Driver</driver-class>
</local-tx-datasource>
<jboss-web>
<context-root>/gift</context-root>
<security-domain>java:/jaas/gift-web</security-domain>
<resource-ref>
<res-ref-name>jdbc/GiftDevel</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>jdbc/GiftDevel</jndi-name>
</resource-ref>
</jboss-web>
from web.xml
<resource-ref>
<res-ref-name>jdbc/GiftDevel</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
context.xml
<?xml version="1.0" encoding="utf-8" ?>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949469#3949469
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949469
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user