-
Jan 17th, 2013, 11:02 AM
#1
Spring JNDI conection Websphere Application Server - DB2
My problem is the performance to connect by JNDI DB2 in AS400 - Websphere Application Server
Websphere AS 8 configuration is the same like IBM infocenter explain, my JDBC provider is DB2 UDB for iSeries (Toolbox-XA) with last JTOpen drivers, all datasources are referenced to this provider.
In my spring file the datasource is:
<jee:jndi-lookup id="dataSourceId"
jndi-name="jdbc/databaseName"
cache="true"
resource-ref="true"
lookup-on-startup="true"
proxy-interface="javax.sql.DataSource"/>
but if i declare the datasource like :
<bean id="sicDataSource"
class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
<property name="driverClassName">
<value>com.ibm.as400.access.AS400JDBCDriver</value>
</property>
<property name="url">
<value>*</value>
</property>
<property name="username">
<value>*</value>
</property>
<property name="password">
<value>*</value>
</property>
</bean>
the performance improve 3 times. ¿Whats wrong?¿ I guess that JNDI conection is more efficient than direct conection?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules