Skip to content

Commit

Permalink
Making sure Gateway sample doesn't use port 80 as the default port be…
Browse files Browse the repository at this point in the history
…cause it can conflict with an existing application like Skype
  • Loading branch information
John Simons authored and shlomii committed May 8, 2012
1 parent 9a325c7 commit c946504
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Samples/Gateway/Headquarter/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

<GatewayConfig>
<Sites>
<Site Key="SiteA" Address="http://localhost/SiteA/" ChannelType="Http"/>
<Site Key="SiteB" Address="http://localhost/SiteB/" ChannelType="Http"/>
<Site Key="SiteA" Address="http://localhost:25899/SiteA/" ChannelType="Http"/>
<Site Key="SiteB" Address="http://localhost:25899/SiteB/" ChannelType="Http"/>
</Sites>
<Channels>
<Channel Address="http://localhost/Headquarter/" ChannelType="Http" Default="true"/>
<Channel Address="http://localhost/Headquarter2/" ChannelType="Http"/>
<Channel Address="http://localhost:25899/Headquarter/" ChannelType="Http" Default="true"/>
<Channel Address="http://localhost:25899/Headquarter2/" ChannelType="Http"/>
</Channels>
</GatewayConfig>
</configuration>
7 changes: 6 additions & 1 deletion Samples/Gateway/SiteA/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
<configuration>
<configSections>
<section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core" />
<section name="GatewayConfig" type="NServiceBus.Config.GatewayConfig, NServiceBus.Core" />
</configSections>

<GatewayConfig>
<Channels>
<Channel Address="http://localhost:25899/SiteA/" ChannelType="Http" Default="true"/>
</Channels>
</GatewayConfig>
<MessageForwardingInCaseOfFaultConfig ErrorQueue="error"/>
</configuration>
10 changes: 7 additions & 3 deletions Samples/Gateway/SiteB/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
<configuration>
<configSections>
<section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core"/>
<section name="GatewayConfig" type="NServiceBus.Config.GatewayConfig, NServiceBus.Core" />
</configSections>

<GatewayConfig>
<Channels>
<Channel Address="http://localhost:25899/SiteB/" ChannelType="Http" Default="true"/>
</Channels>
</GatewayConfig>
<MessageForwardingInCaseOfFaultConfig ErrorQueue="error"/>

<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
</configuration>
2 changes: 1 addition & 1 deletion Samples/Gateway/WebClient/Index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</script>
<h1>Click the button below to make a JSONP request to the nservicebus gateway</h1>
<p>Gateway address:</p>
<input type="text" id="gatewayaddress" value="http://localhost/Headquarter/" size="60"/><br/>
<input type="text" id="gatewayaddress" value="http://localhost:25899/Headquarter/" size="60"/><br/>
<input type="button" id="go" name="go" value="Send price update command to server" />
</body>
</html>

0 comments on commit c946504

Please sign in to comment.