ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: About MySQL Driver Properties in <transactionManager>
Date Thu, 07 Apr 2005 14:12:25 GMT
There is no current feature like that. You have to pass them on the
connection string like you are currently doing. What is the difficulty
you are facing with passing the values on the connections string?
Please explain why this is a problem.

Brandon

On Apr 7, 2005 3:59 AM, Akihiro Kubota <Akihiro.Kubota@asia.bigfoot.com> wrote:
>  
>  
> 
> <transactionManager type="JDBC"> 
> 
>           <dataSource type="SIMPLE">              
> 
>                <property name="JDBC.Driver" value="com.mysql.jdbc.Driver" />
> 
>           <property name="JDBC.ConnectionURL"
> value="jdbc:mysql://localhost:3306/exam?zeroDateTimeBehavior=convertToNull"
> /> 
> 
>                <property name="JDBC.Username" value="${username}" /> 
> 
>                <property name="JDBC.Password" value="${password}" /> 
> 
>                <property name="JDBC.DefaultAutoCommit" value="true"/> 
> 
>                <property name="Pool.MaximumActiveConnections" value="15" /> 
> 
>                <property name="Pool.MaximumIdleConnections" value="15" /> 
> 
>                <property name="Pool.MaximumWait" value="1000" /> 
> 
>           </dataSource>         
> 
>      </transactionManager> 
> 
>   
> 
> As you can see the BOLD part of the mysqlconfig.xml file. 
> 
>   
> 
> Is there a way for the transactionManager to include properties specific to
> the 
> 
> database? 
> 
>   
> 
> For example like : 
> 
>   
> 
>                ... 
> 
>                <property name="JDBC.Driver" value="com.mysql.jdbc.Driver" />
> 
>           <property name="JDBC.ConnectionURL"
> value="jdbc:mysql://localhost:3306/exam? "/> 
> 
>           <property name="JDBC.Driver.zeroDateTimeBehavior"
> value="convertToNull"/> 
> 
>                <property name="JDBC.Username" value="${username}" /> 
> 
>                <property name="JDBC.Password" value="${password}" /> 
> 
>   
> 
> I will really appreciate for this kind of change. 
> 
>   
> 
> Thanks! 
> 
>   
> 
>   
> 
>

Mime
View raw message