Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?><switchyard xmlns="urn:switchyard-config:switchyard:1.0">
- <!--
- JBoss, Home of Professional Open Source
- Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
- contributors by the @authors tag. See the copyright.txt in the
- distribution for a full listing of individual contributors.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <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">
- <service name="PrintService" promote="PrintService/PrintService">
- GMail settings - to run this quickstart with a test
- GMail account, please uncomment this mail:binding and comment
- out the mail:binding listed below. Directions for running
- and configuring the quickstart are in the Readme.md file.
- <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0" secure="true">
- <mail:host>imap.gmail.com</mail:host>
- <mail:username>camelmailbinding</mail:username>
- <mail:password>camelmailbinding1</mail:password>
- <mail:consume accountType="imap">
- <mail:folderName>inbox</mail:folderName>
- </mail:consume>
- </mail:binding.mail>
- <!--
- <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0">
- <mail:host>localhost</mail:host>
- <mail:username>camel</mail:username>
- <mail:consume accountType="imap">
- <mail:initialDelay>0</mail:initialDelay>
- <mail:delay>100</mail:delay>
- <mail:copyTo>after-processing</mail:copyTo>
- </mail:consume>
- </mail:binding.mail>
- -->
- </service>
- <reference multiplicity="1..1" name="OutgoingPrintService" promote="PrintService/OutgoingPrintService">
- GMail settings - to run this quickstart with a test
- GMail account, please uncomment this mail:binding and comment
- out the mail:binding listed below. Directions for running
- and configuring the quickstart are in the Readme.md file.
- <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0" secure="true">
- <mail:host>smtp.gmail.com</mail:host>
- <mail:port>465</mail:port>
- <mail:username>camelmailbinding@gmail.com</mail:username>
- <mail:password>camelmailbinding1</mail:password>
- <mail:produce>
- <mail:subject>Forwarded message</mail:subject>
- <mail:from>camelmailbinding@gmail.com</mail:from>
- <mail:to>jkasztur@redhat.com</mail:to>
- </mail:produce>
- </mail:binding.mail>
- <!--
- <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0">
- <mail:host>localhost</mail:host>
- <mail:username>camel</mail:username>
- <mail:produce>
- <mail:subject>Forwarded message</mail:subject>
- <mail:from>camel@localhost</mail:from>
- <mail:to>rider@camel</mail:to>
- </mail:produce>
- </mail:binding.mail>-->
- </reference>
- <component name="PrintService">
- <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.camel.mail.binding.PrintServiceImpl"/>
- <service name="PrintService">
- <interface.java interface="org.switchyard.quickstarts.camel.mail.binding.PrintService"/>
- </service>
- <reference name="OutgoingPrintService">
- <interface.java interface="org.switchyard.quickstarts.camel.mail.binding.PrintService"/>
- </reference>
- </component>
- </composite>
- </switchyard>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement