Click here to Skip to main content
15,884,177 members
Articles / Programming Languages / XML

Non-Stopping Upgradable Service Framework

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
27 Jan 2012CPOL6 min read 28.5K   283   43  
A framework designed for support upgrade components in service without stop running
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="componentSection" type="ClassContract.ComponentSectionHandler,ClassContract"/>
  </configSections>

  <componentSection>
    
    <!-- Unit Test-->
    <components>
      <component name="reader1" assemblyName="ClassLibrary1.dll" className="ClassLibrary1.Reader" isUpgradable="true" downstreams="processor1" />
      <component name="processor1" assemblyName="ClassLibrary1.dll" className="ClassLibrary1.Processor" isUpgradable="true" downstreams="dispatcher1"   />
      <component name="dispatcher1" assemblyName="ClassLibrary1.dll" className="ClassLibrary1.Dispatcher" isUpgradable="true" downstreams=""   />
    </components>

    <!-- Demo 1: singleton-targets component
<components>
  <component name="reader1" assemblyName="ClassContract" className="ClassContract.Reader" isUpgradable="true" nextBusinessClass="processor1"   />
  <component name="processor1" assemblyName="ClassContract" className="ClassContract.Processor" isUpgradable="true" nextBusinessClass="dispatcher1"   />
  <component name="dispatcher1" assemblyName="ClassContract" className="ClassContract.Dispatcher" isUpgradable="true" nextBusinessClass=""   />
</components>-->

  </componentSection>

</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
Software Developer (Senior)
China China
I started to programming in 2002, started when I was grade 2 in university, I participated some part-time projects at that time, I have much experiences on Windows, includes C#, ASP.NET, Visual Basic, Visual C++, AJAX, Power Shell Script, JavaScript, XML..etc, I am learning design and architect.

Comments and Discussions