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

David Ward do-not-reply at jboss.com
Wed May 19 10:20:15 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/543868#543868

--------------------------------------------------------------
I'm thinking that it would still be nice to have a <providers> section too, so that we can have multiple routes in one CamelContext.  Since, if you do this:

<listeners>
    <camel-gateway from="file://xxx" />
    <camel-gateway from="ftp://yyy" />
</listeners>


, we would have to create 2 different CamelContexts, one for each gateway.  However, if we do this:

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


, then we can have multiple Camel routes as part of a single CamelContext - on per bus.  I also like using the <from> tag in the <camel-bus> section, as it is familiar to current Camel users.  The only caveat - for 4.x, anyway - is that ONLY the <from> tag would be supported by us.

What do you think?  Should we also allow the <camel-gateway from="" /> shorthand?  I wonder if we can define in XSD that you use either the busidref attribute, OR the from attribute?  Or maybe we let them do both, and all "from's" get put into the same CamelContext?

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

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

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/33e180af/attachment.html 


More information about the jboss-dev-forums mailing list