Ingres DataSource Configuration
From: nasser (nasser_at_unify.com.br)
Date: 02/19/04
- Next message: David Harper: "Re: 100% cpu usage when starting MySQL server"
- Previous message: Dave: "Re: Trouble with applet connecting through SQL Server - Please help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 19 Feb 2004 12:46:37 -0600
Hi
I obtain to carry through the connection with ingres using ca.edbc.jdbc.EdbcDriver , normally, using this xml file:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>DSIngres</jndi-name>
<connection-url>jdbc:edbc://localhost:portName/DBaseName;UID=userName;PWD=password</connection-url>
<driver-class>ca.edbc.jdbc.EdbcDriver</driver-class>
<user-name>x</user-name>
<password>y</password>
</local-tx-datasource>
</datasources>
____________________________________________________________
How I could make this same connection using following class ca.edbc.jdbcx.EdbcCPDataSource ?
I tried to use this xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- *********************************************** -->
<!-- Ingres CP local-tx-datasource CP example -->
<!-- Author: Hamilton 2004-02-04 22:30 -->
<!-- Revised Hamilton xxxx-xx-xx xx:xx -->
<!-- *********************************************** -->
<xa-datasource>
<jndi-name>CPDataSource</jndi-name>
<track-connection-by-tx>true</track-connection-by-tx>
<xa-datasource-class>ca.edbc.jdbcx.EdbcCPDataSource</xa-datasource-class>
<xa-datasource-property-name="ServerName">localhost</xa-datasource-property>
<xa-datasource-property-name="PortName">PortName</xa-datasource-property>
<xa-datasource-property-name="DatabaseName">DBaseName</xa-datasource-property>
<xa-datasource-property-name="SelectMethod">cursor</xa-datasource-property>
<xa-datasource-property-name="SendStringParametersAsUnicode">true</xa-datasource-property>
<user-name>x</user-name>
<password>y</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>50</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
</xa-datasource>
But the following error occurred:
Unable to get connection to data source "CPDataSource"
java.lang.ClassCastException: ca.edbc.jdbcx.EdbcCPDataSource
Any aid I am thankful.
Nasser Auada
- Next message: David Harper: "Re: 100% cpu usage when starting MySQL server"
- Previous message: Dave: "Re: Trouble with applet connecting through SQL Server - Please help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|