[jboss-dev-forums] [JBoss ESB Development] - Camel integration input requested

David Ward do-not-reply at jboss.com
Wed May 19 10:53:42 EDT 2010


David Ward [http://community.jboss.org/people/dward] replied to the discussion

"Camel integration input requested"

To view the discussion, visit: http://community.jboss.org/message/543885#543885

--------------------------------------------------------------
Okay, a bit more discussion on the team, and this is looking like the new direction.  You would have several options, including some shorthand:

<listeners>
    <camel-gateway name="..." from="foo://bar" />
</listeners>


<listeners>
     <camel-gateway name="...">
        <from uri="foo://bar" />
        <from uri="foo://bar" />
    </camel-gateway>
</listeners>


<listeners>
     <camel-gateway name="..." from="foo://bar">
        <from uri="foo://bar" />
        <from uri="foo://bar" />
    </camel-gateway>
</listeners>


<providers>
    <camel-provider name="...">
        <camel-bus busid="xxx" from="foo://bar">
    </camel-provider>
</providers>
<services>
    <listeners>
        <camel-gateway name="..." busidref="xxx" />
    </listeners>
    <actions>...</actions>
</services>

<providers>
     <camel-provider name="...">
         <camel-bus busid="xxx">
            <from uri="foo://bar" />
            <from uri="foo://bar" />
        </camel-bus>
    </camel-provider>
 </providers>
 <services>
     <listeners>
         <camel-gateway name="..." busidref="xxx" />
     </listeners>
     <actions>...</actions>
 </services>


You get the idea.   ;)   Basically, all "from's" associated with a gateway would be combined into a single CamelContext.  If you specify multiple camel-gateways in the listeners section that refer to the same bus, then the routes defined in the <camel-bus> section are created separately in each CamelContext - again, one per gateway.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/543885#543885]

Start a new discussion in JBoss ESB Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100519/0d53113f/attachment.html 


More information about the jboss-dev-forums mailing list