This content has been marked as final.
Show 2 replies
-
1. Re: Couldn't connect to database
jamesjmp May 25, 2009 12:46 PM (in response to pmsudha)are you using some tools like seam-gen or JBoss Tools?
-
2. Re: Couldn't connect to database
jamesjmp May 25, 2009 12:55 PM (in response to pmsudha)check your projectName-dev-ds.xml
You should have something like this:
<datasources> <local-tx-datasource> <jndi-name>yourProjectDatasource</jndi-name> <connection-url>yourproperDatabaseUrlConnection</connection-url> <driver-class>yourproperdriver. Forexamplecom.sybase.jdbc2.jdbc.SybDriver</driver-class> <user-name>yourDatabaseUser</user-name> <password>yourDatabasePassword</password> <min-pool-size>1</min-pool-size> <max-pool-size>20</max-pool-size> <idle-timeout-minutes>15</idle-timeout-minutes> <exception-sorter-class-name>ProperSorter. For example org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter</exception-sorter-class-name> <type-mapping>ProperSorter. For example Sybase</type-mapping> </local-tx-datasource> </datasources>
Both JBoss tools and seam gen helps you to generate and configure that file.