<?xml version="1.0"?>
<instances>

        <!-- This instance maintains connections to an Oracle database. -->
        <instance id="oracle" socket="/tmp/oracle.socket" dbase="oracle">
                <users>
                        <user user="oracleuser" password="oraclepassword"/>
                </users>
                <connections>
                        <connection string="user=scott;password=tiger;oracle_sid=orcl"/>
                </connections>
        </instance>


        <!-- This instance maintains connections to an SAP database. -->
        <instance id="sap" socket="/tmp/sap.socket" dbase="sap">
                <users>
                        <user user="sapuser" password="sappassword"/>
                </users>
                <connections>
                        <connection string="sybase=/opt/sap;lang=en_US;server=EXAMPLEDB;user=exampleuser;password=examplepassword;db=exampledb;"/>
                </connections>
        </instance>


        <!-- This instance sends one set of users to the Oracle database and
                all other users to the sap database. -->
        <instance id="router" dbase="router">
                <users>
                        <user user="routeruser" password="routerpassword"/>
                </users>
		<routers>
			<router module="clientinfolist" connectionid="master">
				<clientinfo pattern=".*oracle.*"/>
				<clientinfo pattern=".*orcl.*"/>
			</router>
			<router module="clientinfolist" connectionid="slave">
				<clientinfo pattern="*"/>
			</router>
		</routers>
		<connections>
			<connection connectionid="oracle" string="socket=/tmp/oracle.socket;user=oracleuser;password=oraclepassword"/>
			<connection connectionid="sap" string="socket=/tmp/sap.socket;user=sapuser;password=sappassword"/>
		</connections>
        </instance>

</instances>
