Atomikos Forum |
|
Hi,
How to configure Datasource in Tomcat server.xml so that it can be accessible in my spring web application. Ex. server.xml <Context path="/multidbatomikos" docBase="multidbatomikos" debug="5" reloadable="true" crossContext="true" > <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_DBConnector_log." suffix=".txt" timestamp="true"/> <Resource name="jdbc/myDB1" auth="Container" type="com.atomikos.jdbc.AtomikosDataSourceBean" factory="com.atomikos.tomcat.BeanFactory" uniqueResourceName="jdbc/myDB1" xaDataSourceClassName="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" xaProperties.databaseName="multi1" xaProperties.serverName="localhost" xaProperties.port="3306" xaProperties.user="user" xaProperties.password="pwd" xaProperties.url="jdbc:mysql://localhost:3306/multi1"/> what should be configured in spring applicationContext.xml so that i can access the datasource ............ I am using Spring 2.5 and tomcat6.x What should come here so that the Datasource can be accessible from my spring web application. Thanks & Regards |