Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.52 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?><switchyard xmlns="urn:switchyard-config:switchyard:1.0">
  2. <!--
  3.    JBoss, Home of Professional Open Source
  4.    Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
  5.    contributors by the @authors tag. See the copyright.txt in the
  6.    distribution for a full listing of individual contributors.
  7.  
  8.    Licensed under the Apache License, Version 2.0 (the "License");
  9.    you may not use this file except in compliance with the License.
  10.    You may obtain a copy of the License at
  11.    http://www.apache.org/licenses/LICENSE-2.0
  12.    Unless required by applicable law or agreed to in writing, software
  13.    distributed under the License is distributed on an "AS IS" BASIS,
  14.    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15.    See the License for the specific language governing permissions and
  16.    limitations under the License.
  17. -->
  18.     <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="camel-mail-binding" targetNamespace="urn:switchyard-quickstart:camel-mail-binding:0.1.0">
  19.         <service name="PrintService" promote="PrintService/PrintService">
  20.        
  21.         GMail settings - to run this quickstart with a test
  22.         GMail account, please uncomment this mail:binding and comment
  23.         out the mail:binding listed below.   Directions for running
  24.                 and configuring the quickstart are in the Readme.md file.
  25.             <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0" secure="true">
  26.                 <mail:host>imap.gmail.com</mail:host>
  27.                 <mail:username>camelmailbinding</mail:username>
  28.                 <mail:password>camelmailbinding1</mail:password>
  29.                 <mail:consume accountType="imap">
  30.                     <mail:folderName>inbox</mail:folderName>
  31.                 </mail:consume>
  32.             </mail:binding.mail>
  33.         <!--
  34.            <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0">
  35.                <mail:host>localhost</mail:host>
  36.                <mail:username>camel</mail:username>
  37.                <mail:consume accountType="imap">
  38.                    <mail:initialDelay>0</mail:initialDelay>
  39.                    <mail:delay>100</mail:delay>
  40.                    <mail:copyTo>after-processing</mail:copyTo>
  41.                </mail:consume>
  42.            </mail:binding.mail>
  43. -->
  44.         </service>
  45.         <reference multiplicity="1..1" name="OutgoingPrintService" promote="PrintService/OutgoingPrintService">
  46.            
  47.                 GMail settings - to run this quickstart with a test
  48.                 GMail account, please uncomment this mail:binding and comment
  49.                 out the mail:binding listed below.   Directions for running
  50.                 and configuring the quickstart are in the Readme.md file.
  51.             <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0" secure="true">
  52.                 <mail:host>smtp.gmail.com</mail:host>
  53.                 <mail:port>465</mail:port>
  54.                 <mail:username>camelmailbinding@gmail.com</mail:username>
  55.                 <mail:password>camelmailbinding1</mail:password>
  56.                 <mail:produce>
  57.                     <mail:subject>Forwarded message</mail:subject>
  58.                     <mail:from>camelmailbinding@gmail.com</mail:from>
  59.                     <mail:to>jkasztur@redhat.com</mail:to>
  60.                 </mail:produce>
  61.             </mail:binding.mail>
  62.             <!--
  63.            <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0">
  64.                <mail:host>localhost</mail:host>
  65.                <mail:username>camel</mail:username>
  66.                <mail:produce>
  67.                    <mail:subject>Forwarded message</mail:subject>
  68.                    <mail:from>camel@localhost</mail:from>
  69.                    <mail:to>rider@camel</mail:to>
  70.                </mail:produce>
  71.            </mail:binding.mail>-->
  72.         </reference>
  73.         <component name="PrintService">
  74.             <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.camel.mail.binding.PrintServiceImpl"/>
  75.             <service name="PrintService">
  76.                 <interface.java interface="org.switchyard.quickstarts.camel.mail.binding.PrintService"/>
  77.             </service>
  78.             <reference name="OutgoingPrintService">
  79.                 <interface.java interface="org.switchyard.quickstarts.camel.mail.binding.PrintService"/>
  80.             </reference>
  81.         </component>
  82.     </composite>
  83. </switchyard>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement