<?xml version="1.0" encoding="UTF-8"?>
<StrolchConfiguration>
    <env id="dev">
        <Runtime>
            <applicationName>StrolchPersistenceTest</applicationName>
        </Runtime>
        <Component>
            <name>PrivilegeHandler</name>
            <api>li.strolch.runtime.privilege.PrivilegeHandler</api>
            <impl>li.strolch.runtime.privilege.DefaultStrolchPrivilegeHandler</impl>
            <Properties>
                <privilegeConfigFile>PrivilegeConfig.xml</privilegeConfigFile>
            </Properties>
        </Component>
        <Component>
            <name>RealmHandler</name>
            <api>li.strolch.agent.api.RealmHandler</api>
            <impl>li.strolch.agent.impl.DefaultRealmHandler</impl>
            <depends>PrivilegeHandler</depends>
            <depends>PersistenceHandler</depends>
            <Properties>
                <realms>defaultRealm, first, second</realms>
                <dataStoreMode>EMPTY</dataStoreMode>
                <dataStoreMode.first>CACHED</dataStoreMode.first>
                <dataStoreFile.first>StrolchModel.xml</dataStoreFile.first>
                <enableAuditTrail.first>true</enableAuditTrail.first>
                <dataStoreMode.second>CACHED</dataStoreMode.second>
                <dataStoreFile.second>StrolchModel.xml</dataStoreFile.second>
                <enableAuditTrail.second>true</enableAuditTrail.second>
            </Properties>
        </Component>
        <Component>
            <name>PersistenceHandler</name>
            <api>li.strolch.persistence.api.PersistenceHandler</api>
            <impl>li.strolch.persistence.postgresql.PostgreSqlPersistenceHandler</impl>
            <Properties>
                <allowSchemaCreation>true</allowSchemaCreation>
                <allowSchemaDrop>true</allowSchemaDrop>

                <db.allowHostOverrideEnv>true</db.allowHostOverrideEnv>

                <db.url.first>jdbc:postgresql://localhost/testdb1</db.url.first>
                <db.username.first>testuser1</db.username.first>
                <db.password.first>test</db.password.first>
                <db.pool.maximumPoolSize.first>1</db.pool.maximumPoolSize.first>
                <db.pool.keepaliveTime.first>600000</db.pool.keepaliveTime.first>

                <db.url.second>jdbc:postgresql://localhost/testdb2</db.url.second>
                <db.username.second>testuser2</db.username.second>
                <db.password.second>test</db.password.second>
                <db.pool.maximumPoolSize.second>1</db.pool.maximumPoolSize.second>
                <db.pool.keepaliveTime.second>600000</db.pool.keepaliveTime.second>
            </Properties>
        </Component>
        <Component>
            <name>OperationsLog</name>
            <api>li.strolch.handler.operationslog.OperationsLog</api>
            <impl>li.strolch.handler.operationslog.OperationsLog</impl>
            <depends>RealmHandler</depends>
        </Component>
    </env>
</StrolchConfiguration>