Click here to Skip to main content
15,897,226 members
Articles / Programming Languages / C#

Service Bus Architecture based on WCF (3): Build your ESB

Rate me:
Please Sign up or sign in to vote.
4.87/5 (18 votes)
10 Feb 2011CPOL4 min read 77.1K   8.3K   52  
Service Bus Architecture based on WCF (3): build your ESB
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.diagnostics>
  <sources>
   <!-- The 'switchValue' determines the level of traces that will
             be outputted, e.g. 'Verbose', 'Warning', 'Error', etc -->
   <source name="System.ServiceModel" switchValue="Error, ActivityTracing"
                 propagateActivity="true">
     <listeners>
     <clear />
     <!-- The 'initializeData' attribute determines to which file
              the traces will be written -->
     <add name="xml" type="System.Diagnostics.XmlWriterTraceListener"
                initializeData="e2eTraceTest.xml" />
     <!-- To log to a Console, use this instead of previous Node:
     <add name="console" type="System.Diagnostics.ConsoleTraceListener" />
     -->
    </listeners>
   </source>
  </sources>
  <!-- Setting he 'autoflush' attribute to 'true' ensures that the trace
            sources flush to disk after each trace -->
  <trace autoflush="true" />
 </system.diagnostics>

    <system.serviceModel>
        <bindings>
            <netTcpBinding>
                <binding name="TCPBinding" maxReceivedMessageSize="65536000">
                    <readerQuotas maxArrayLength="10000" maxBytesPerRead="1000000" />
                </binding>
            </netTcpBinding>
        </bindings>
        <client>
            <endpoint address="net.tcp://localhost:8887/MessageSender" binding="netTcpBinding"
                bindingConfiguration="" contract="Thoughtworks.SAOT.Object.IMessageSender"
                name="MessageSender" />
            <endpoint address="net.tcp://localhost:8887/SAOTService" binding="netTcpBinding"
                bindingConfiguration="" contract="Thoughtworks.SAOT.Object.ISAOTService"
                name="SAOTService" />
            <endpoint address="net.tcp://localhost:8886/MessageTest" binding="netTcpBinding"
                bindingConfiguration="" contract="Thoughtworks.SAOT.Object.IMessageSender"
                name="MessageSenderTest" />
        </client>
    </system.serviceModel>
</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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions