iBatis | Configuring xml file as a datasource in ibatis -
How do I configure an XML file as a data source in iBatis?
Thank you, R
If you are using a tomcake, You can configure DataSource in .xml and your iBatis configuration xml where comp / env / jdbc / db is your JDD definition in tomcat
& Lt; Property name = "resourceRef" value = "true" /> & Lt; / Bean & gt; If one of its standalone applications:
& lt; Bean id = "jdbc.DataSource" class = "org.apache.commons.dbcp.BasicDataSource" & gt; & Lt; Property Name = "driverClassName" value = "oracle.jdbc.OracleDriver" /> & Lt; Property name = "initial size" value = "$ {jdbc.initialSize}" /> & Lt; Property Name = "Maxactive" value = "$ {jdbc.maxActive}" /> & Lt; Property Name = "Min Idle" value = "$ {jdbc.minIdle}" /> & Lt; Property name = "password" value = "$ {jdbc.dbpassword}" /> & Lt; Property name = "url" value = "$ {jdbc.dburl}" /> & Lt; Property name = "user name" value = "$ {jdbc.dbuser}" /> & Lt; Property Name = "accessToUnderlyingConnectionAllowed" value = "true" /> & Lt; / Bean & gt;
Comments
Post a Comment