开发者

How to set program name in ibatis config XML?

开发者 https://www.devze.com 2023-02-27 06:22 出处:网络
I am attempting to set the program name to something other than \"jdbc thin client\" using the iBatis dao config.

I am attempting to set the program name to something other than "jdbc thin client" using the iBatis dao config.

From my dao XML config file:

<transactionManager type="JDBC">
    <dataSource type="DBCP">
        <property name="JDBC.Driver" value="com.foo.bar.jdbc.MyOracleDriver"/>
        <property name="JDBC.ConnectionURL" value="oracle.jdbc.OracleDriver&amp;jdbc开发者_StackOverflow:oracle:thin:@${host}:1521:${database}"/>
        <property name="JDBC.Username" value="${userName}"/>
        <property name="JDBC.Password" value="${password}"/>
        <property name="Pool.DefaultAutoCommit" value="false"/>
        <property name="Pool.MaximumActiveConnections" value="63"/>
        <property name="Pool.MaximumIdleConnections" value="10"/>
        <property name="Pool.MaximumWait" value="2000"/>
        <property name="Pool.ValidationQuery" value="select 1 from dual"/>
        <property name="Pool.testWhileIdle" value="true"/>
        <property name="Pool.TestOnBorrow" value="true"/>
        <property name="Pool.LogAbandoned" value="true"/>
        <property name="Pool.RemoveAbandoned" value="true"/>
        <property name="Pool.RemoveAbandonedTimeout" value="300"/>
    </dataSource>
</transactionManager>

I would assume this is as easy as adding the following:

<property name="v$session.program" value="My Program Name"/>

But that didn't work. The program name did not change. What am I doing wrong?

0

精彩评论

暂无评论...
验证码 换一张
取 消