SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 19-06-2019 11:41:19

MarekR
Member
Registered: 21-02-2019
Posts: 19

XPress Alternate Destinations

In this example we will be using 3 computers.

The IP Address for the computers are as follows:

  • Computer A : 10.0.0.1

  • Computer B : 10.0.0.2

  • Computer C : 10.0.0.3

We want to send "Computer B" a file from "Computer A", but if "Computer B" is down we will send the file to "Computer C".

The Destination in the file we want to send should contain both possible destinations separated by a ";" with the preferred destination first.

similar to this:

    <XPress>
      <Destination>10.0.0.2;10.0.0.3</Destination>
    </XPress>

Our Dispatch routing table for "Computer A" should look as follows:

<?xml version='1.0' encoding='UTF-8' ?> 
<RoutingTable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://www.sxi.co.za/XMLSchema/XPress/Dispatch"
    xmlns:sxi="http://www.sxi.co.za/XMLSchema"
    xsi:schemaLocation="http://www.sxi.co.za/XMLSchema/XPress/Dispatch ../schema/RoutingTable.xsd">
    <route ValidDest="localhost" NextHop="localhost"/>
    <route ValidDest="10.0.0.2" NextHop="10.0.0.2"/>
    <route ValidDest="10.0.0.3" NextHop="10.0.0.3"/>
</RoutingTable>

With this if "Computer B" is down the file will be sent to "Computer C".

Offline

Board footer

Powered by FluxBB