Click here to Skip to main content
15,881,882 members
Articles / DevOps / Load Testing

VirtualService for ESB

Rate me:
Please Sign up or sign in to vote.
4.90/5 (32 votes)
19 Feb 2008CPOL37 min read 96.6K   1.2K   98  
This article describes the design, implementation, and usage of VirtualService for the Enterprise Service Bus, using the Microsoft .NET FX 3.5 technology.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<configSections>
		<section name="LocalRepository" type="RKiss.ESB.LocalRepositorySection, ESB.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
	</configSections>

    <LocalRepository enable="true" endpointName="boot">
		<HostMetadata hostName="Application_Test" assemblyNames="RKiss.ESB.Contracts; WorkflowLibrary1">
			<Services>
				<add name="WorkflowLibrary1.Workflow4" appDomainHostName="Business_3" 
					 config="..\..\LocalRepository\Metadata\Workflow40.config" 
					 xoml="..\..\LocalRepository\Metadata\WorkflowLibrary1.Workflow4.xoml" 
					 rules="..\..\LocalRepository\Metadata\WorkflowLibrary1.Workflow4.rules"/>
				<!--<add name="WorkflowLibrary1.WS_ResourceTransfer" appDomainHostName="Business_1" config="" xoml="" rules=""/>-->
				<!--<add name="RKiss.ESB.DomainLoader" />-->
			</Services>
		</HostMetadata>
	</LocalRepository>

	<!--<system.diagnostics>
	  <sources>
		<source name="System.ServiceModel" switchValue="Verbose,ActivityTracing" propagateActivity="true">
			<listeners>
				<add type="System.Diagnostics.DefaultTraceListener" name="Default">
				<filter type="" />
				</add>
				<add name="ServiceModelTraceListener">
				<filter type="" />
				</add>
			</listeners>
		</source>
		<source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
			<listeners>
				<add type="System.Diagnostics.DefaultTraceListener" name="Default">
				<filter type="" />
				</add>
				<add name="ServiceModelMessageLoggingListener">
				<filter type="" />
				</add>
			</listeners>
		</source>
	  </sources>
	  <sharedListeners>
	   <add initializeData="..\..\Logs\app_tracelog.svclog"
		type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
		name="ServiceModelTraceListener" traceOutputOptions="LogicalOperationStack, Timestamp, ThreadId, Callstack">
		<filter type="" />
	   </add>
	   <add initializeData="..\..\Logs\app_messages.svclog"
		type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
		name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
		<filter type="" />
	   </add>
	  </sharedListeners>
	</system.diagnostics>-->

	<system.serviceModel>
		<diagnostics wmiProviderEnabled="true">
			<messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="false" logMessagesAtTransportLevel="true" />
		</diagnostics>

		<!-- Register all extensions in this process -->
		<extensions>
			<bindingElementExtensions>
				<add name="nullTransport" type="RKiss.NullChannelLib.NullTransportElement, NullChannelLib" />
			</bindingElementExtensions>
			<behaviorExtensions>
				<add name='subscribe' type='RKiss.ESB.SubscribeEndpointBehaviorExtension, ESB.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' />
				<add name='filter' type='RKiss.ESB.FilteringEndpointBehaviorExtension, ESB.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' />
				<add name='logger' type='RKiss.Logger.LoggerBehaviorSection, Logger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'/>
				<add name='createWorkflow' type='RKiss.ESB.CreateWorkflowEndpointBehaviorExtension, ESB.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' />
			</behaviorExtensions>
		</extensions>

		<!-- binding for clients -->
		<bindings>
			<netNamedPipeBinding>
				<binding name="bootstrap">
					<readerQuotas maxStringContentLength="2000000"/>
					<security mode="None"/>
				</binding>
			</netNamedPipeBinding>			
			<netPeerTcpBinding>
				<binding name='Eventing' port='0'>
					<security mode='None' />
					<resolver mode='Auto'/>
				</binding>
			</netPeerTcpBinding>
		</bindings>
		
		<client>
			<endpoint name="boot" address="net.pipe://rkiss2/LocalRepository" binding="netNamedPipeBinding" bindingConfiguration="bootstrap" contract="RKiss.ESB.IBootstrap"/>
		</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
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions