Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Resources in context.xml not being refreshed

$
0
0
The MySQL server which I am pointing to works correctly in Dev mode but not when deployed on tomcat server.

Here are the contents of my "context.xml"

Code:

<?xml version="1.0" encoding="UTF-8"?>
<Context reloadable="true">


    <Resource name="jdbc/CSODatabase"
        type="javax.sql.DataSource"
        driverClassName="com.mysql.jdbc.Driver"
        url="jdbc:mysql://cities.emnet.net:3306/csorepository"
        username="xxx"
        password="xxx"
        testOnBorrow="true"
        validationQuery="SELECT 1" />

        <!--
        <Resource name="jdbc/CSODatabase"
                type="javax.sql.DataSource"
                driverClassName="com.mysql.jdbc.Driver"
                url="jdbc:mysql://localhost:3306/csorepository"
                username="xxx"
                password="xxx"
                testOnBorrow="true"
                validationQuery="SELECT 1" />
        -->
<!--
        <Resource name="jdbc/CSODatabase"
                type="javax.sql.DataSource"
                driverClassName="com.mysql.jdbc.Driver"
                url="jdbc:mysql://50.21.180.198:3306/csorepository"
                username="xxx"
                password="xxx"
                testOnBorrow="true"
                validationQuery="SELECT 1"
                defaultAutoCommit="false"/>

        <WatchedResource>path/to/watched/resource</WatchedResource>
 --> 

       
 </Context>

As you can see, it should be pointing to cities.emnet.net, however when I deploy it, it still points to 50.21.180.198:3306

Viewing all articles
Browse latest Browse all 4756

Trending Articles