iSeries DB2 setting URL in Spring app context

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

iSeries DB2 setting URL in Spring app context

Garth
 bitronix.tm.utils.PropertyException: no writeable property 'url' in class 'com.ibm.as400.access.AS400JDBCDriver'
<bean id="dataSourceGreeley"
                class="bitronix.tm.resource.jdbc.PoolingDataSource" init-method="init"
                destroy-method="close">
                <property name="className"
                        value="com.ibm.as400.access.AS400JDBCDriver" />
                <property name="uniqueName" value="jdbc/XAGxxxxDS" />
                <property name="maxPoolSize" value="5" />
               
                <property name="driverProperties">
                        <props>
                                <prop key="url">jdbc:as400://as400a</prop> 
                                <prop key="username">xxx</prop>
                                <prop key="password">xxx</prop>
                        </props>
                </property>
        </bean>
Reply | Threaded
Open this post in threaded view
|

Re: iSeries DB2 setting URL in Spring app context

Ludovic Orban
Administrator
AS400JDBCXADataSource ?

<bean id="dataSourceGreeley" class="bitronix.tm.resource.jdbc.PoolingDataSource" init-method="init" destroy-method="close">
        <property name="className" value="<b>com.ibm.as400.access.AS400JDBCXADataSource" />
        <property name="uniqueName" value="jdbc/XAGxxxxDS" />
        <property name="maxPoolSize" value="5" />
       
        <property name="driverProperties">
                <props>
                        <prop key="serverName">as400a</prop> 
                        <prop key="username">xxx</prop>
                        <prop key="password">xxx</prop>
                </props>
        </property>
</bean>

(that's all I could guess from your stripped email)
Reply | Threaded
Open this post in threaded view
|

Re: iSeries DB2 setting URL in Spring app context

Garth
Ludovic Orban wrote
AS400JDBCXADataSource ?

<bean id="dataSourceGreeley" class="bitronix.tm.resource.jdbc.PoolingDataSource" init-method="init" destroy-method="close">
        <property name="className" value="<b>com.ibm.as400.access.AS400JDBCXADataSource" />
        <property name="uniqueName" value="jdbc/XAGxxxxDS" />
        <property name="maxPoolSize" value="5" />
       
        <property name="driverProperties">
                <props>
                        <prop key="serverName">as400a</prop> 
                        <prop key="username">xxx</prop>
                        <prop key="password">xxx</prop>
                </props>
        </property>
</bean>

(that's all I could guess from your stripped email)

I was almost there.  I had figured out serverName but had a url in it.  Thanks I am up and running.