Database Connection Configured into citrus-config.xml, DON'T work

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Database Connection Configured into citrus-config.xml, DON'T work

Mariapia
Hi,
how to configure a file citrus-context.xml to define a database connection using MySql ??


<bean id="todoListDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
 <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
      <property name="url" value="jdbc:mysql://localhost:3306/mytest"/>     
      <property name="username" value="root"/>
      <property name="password" value="root"/>
      <property name="initialSize" value="1"/>
      <property name="maxActive" value="5"/>
      <property name="maxIdle" value="2"/>
    </bean>
Reply | Threaded
Open this post in threaded view
|

Re: Database Connection Configured into citrus-config.xml, DON'T work

Christoph Deppisch
Administrator
You configuration looks good to me. What is the error message that you get? Please provide error information and Java stack trace. Thx