Skip to content

XML Configuration Example

assimbly edited this page Apr 1, 2022 · 10 revisions
<?xml version="1.0" encoding="UTF-8"?>
<integrations>
   <integration>
      <id>1</id>
      <name>default</name>
      <type>ADAPTER</type>
      <environmentName>Dev1</environmentName>
      <stage>DEVELOPMENT</stage>
      <defaultFromEndpointType>FILE</defaultFromEndpointType>
      <defaultToEndpointType>FILE</defaultToEndpointType>
      <defaultErrorEndpointType>FILE</defaultErrorEndpointType>
      <flows>
         <flow>
            <id>1</id>
            <name>FILE2HTTPS</name>
            <autostart>false</autostart>
            <maximumRedeliveries>0</maximumRedeliveries>
            <redeliveryDelay>3000</redeliveryDelay>
            <logLevel>OFF</logLevel>
            <components>
               <component>file</component>
            </components>
            <endpoints>
               <endpoint>
                  <id>1</id>
                  <type>from</type>
                  <uri>file://C:\test1</uri>
               </endpoint>
               <endpoint>
                  <id>2</id>
                  <type>to</type>
                  <uri>file://C:\test2</uri>
               </endpoint>
               <endpoint>
                  <id>3</id>
                  <type>error</type>
                  <uri>file://C:\test3</uri>
               </endpoint>
            </endpoints>
         </flow>
         <flow>
            <id>2</id>
            <name>FILE2FILE</name>
            <autostart>false</autostart>
            <maximumRedeliveries>0</maximumRedeliveries>
            <redeliveryDelay>3000</redeliveryDelay>
            <logLevel>OFF</logLevel>
            <components>
               <component>file</component>
            </components>
            <endpoints>
               <endpoint>
                  <id>4</id>
                  <type>from</type>
                 <options>
                    <directoryMustExist>true</directoryMustExist>
                 </options>
               </endpoint>
               <endpoint>
                  <id>5</id>
                  <type>to</type>
                  <uri>file://C:\test2</uri>
               </endpoint>
               <endpoint>
                  <id>6</id>
                  <type>error</type>
                  <uri>file://C:\test3</uri>
               </endpoint>
            </endpoints>
         </flow>
         <flow>
            <id>3</id>
            <name>File2Queue</name>
            <autostart>false</autostart>
            <maximumRedeliveries>0</maximumRedeliveries>
            <redeliveryDelay>3000</redeliveryDelay>
            <logLevel>OFF</logLevel>
            <components>
               <component>file</component>
            </components>
            <endpoints>
               <endpoint>
                  <id>4</id>
                  <type>from</type>
                 <options>
                    <directoryMustExist>true</directoryMustExist>
                 </options>
               </endpoint>
               <endpoint>
                  <id>5</id>
                  <type>to</type>
                  <uri>activemq:somequeue</uri>
                  <service_id>1</service_id>
               </endpoint>
               <endpoint>
                  <id>6</id>
                  <type>error</type>
                  <uri>file://C:\test3</uri>
               </endpoint>
            </endpoints>
         </flow>
      </flows>
      <services>
         <service>
            <id>1</id>
            <name>local</name>
            <type>ActiveMQ Connection</type>
            <keys>
               <url>tcp://localhost:61616</url>
            </keys>
         </service>
      </services>
      <headers>
         <header>
            <id>1</id>
            <name>myHeader</name>
            <keys>
               <Content-Type type="constant">text/xml</Content-Type>
               <Timestamp type="simple">${date:now:yyyyMMdd}</Timestamp>
            </keys>
         </header>
      </headers>
      <environmentVariables/>
   </integration>
</integrations>
Clone this wiki locally