|
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="IntegrationConfig">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
</sectionGroup>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
<section name="nhibernate" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<nhibernate>
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
<!--
<add key="hibernate.connection.connection_string" value="Server=(local);initial catalog=YourDB;user id=someuser;password=somepassword" />
-->
<add key="hibernate.connection.connection_string" value="Server=(local);initial catalog=BabelUnitTests;user id=sa;password=inxs" />
</nhibernate>
<IntegrationConfig>
<context>
<!-- using embedded assembly configuration file -->
<!-- <resource uri="assembly://MyAssembly/My.Namespace.Xyzzy/AppContext.xml"/> -->
<!-- using section in App.config -->
<resource uri="config://IntegrationConfig/objects"/>
</context>
<objects xmlns="http://www.springframework.net"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.net http://www.springframework.net/xsd/spring-objects.xsd">
<description>
This sections configures the integration processor for the Integration Server.
</description>
<!--Processor-->
<object name="IntegrationProcessor"
type="SimpleInt.Framework.Processor, SimpleInt.Framework"
singleton="true">
<property name="DataStore">
<ref object="IntegrationDataStore"/>
</property>
<property name="IntegrationPackages">
<list>
<ref object="TestPackage"/>
</list>
</property>
</object>
<!--DataStore-->
<object name="IntegrationDataStore"
type="SimpleInt.SimpleImplementations.MessageDataStores.SimpleDBDataStore, SimpleInt.Framework"
singleton="true">
<property name="NHibernateSessionFactory">
<ref object="sessionFactory"/>
</property>
</object>
<!--TestPackage-->
<object name="TestPackage"
type="SimpleInt.Framework.IntegrationPackage, SimpleInt.Framework"
singleton="true">
<property name="Name">
<value>Test</value>
</property>
<property name="Listener">
<ref object="TestListener"/>
</property>
<property name="Parser">
<ref object="TestParser"/>
</property>
<property name="Translator">
<ref object="TestTranslator"/>
</property>
<property name="Sender">
<ref object="TestSender"/>
</property>
</object>
<object name="TestListener"
type="SimpleInt.SimpleImplementations.Listeners.FilePollingListener, SimpleInt.Framework"
singleton="true">
<property name="FolderPath">
<value>Input</value>
</property>
<property name="ArchiveFolder">
<value>Archive</value>
</property>
</object>
<object name="TestParser"
type="SimpleInt.SimpleImplementations.Parsers.PassThroughParser, SimpleInt.Framework"
singleton="true">
</object>
<object name="TestTranslator"
type="SimpleInt.SimpleImplementations.Translators.XsltTranslator, SimpleInt.Framework"
singleton="true">
<property name="XsltFile">
<value>changeIt.xslt</value>
</property>
</object>
<object name="TestSender"
type="SimpleInt.SimpleImplementations.Senders.FileSender, SimpleInt.Framework"
singleton="true">
<property name="Folder">
<value>Output</value>
</property>
<property name="FileType">
<value>.out</value>
</property>
</object>
<!--Database setup-->
<object name="cfg"
type="SimpleInt.SimpleImplementations.MessageDataStores.Hibernate.NHibernateConfiguration, SimpleInt.Framework"
singleton="true">
<property name="Assemblies">
<list>
<value>SimpleInt.Framework</value>
</list>
</property>
</object>
<object name="sessionFactory" factory-method="CreateSessionFactory" factory-object="cfg"/>
</objects>
</IntegrationConfig>
<log4net>
<logger name="testApp.Logging">
<level value="DEBUG"/>
</logger>
</log4net>
</configuration>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.