[esb-issues] [JBoss JIRA] Commented: (JBESB-3525) Add support for scheduled connectors in camel gateway

Tom Fennelly (JIRA) jira-events at lists.jboss.org
Thu Nov 4 06:57:01 EDT 2010


    [ https://jira.jboss.org/browse/JBESB-3525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561262#action_12561262 ] 

Tom Fennelly commented on JBESB-3525:
-------------------------------------

So at the moment, the CamelGatewayMapper combines the esb's provider "from('http:/....')" configurations with a generated "to('jbossesb://...')"  configuration to create a <route>.  So, camel gets configured with something like....

<routes xmlns="http://camel.apache.org/schema/spring">
    <route>
        <from uri="http://....."/>
        <to uri="jbossesb://service?category=camel_helloworld&amp;name=service1&amp;async=false&amp;timeout=30000"/>
    </route>
</routes>

In order to control the poll frequency, it needs to configure Camel with something like the following...

<routes xmlns="http://camel.apache.org/schema/spring">
    <route>
        <from uri="timer://"/>
        <to uri="http://....."/>
        <to uri="jbossesb://service?category=camel_helloworld&amp;name=service1&amp;async=false&amp;timeout=30000"/>
    </route>
</routes>

I think the easiest way of fixing this, for now (without changing the xsd), is to add a pseudo http component "timer" option.  Then inside the mapper, we can generate the route appropriately e.g. "http://....?timer=5000" would generate a route like the one above, with a from("timer...").to("http...").

> Add support for scheduled connectors in camel gateway
> -----------------------------------------------------
>
>                 Key: JBESB-3525
>                 URL: https://jira.jboss.org/browse/JBESB-3525
>             Project: JBoss ESB
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Transports
>    Affects Versions: 4.9
>            Reporter: Kevin Conner
>             Fix For: 4.9 CP1
>
>
> The CamelGateway provides a mechanism via which we can integrate the connectors provided within camel however, as it currently stands, we have no mechanism for supporting scheduled behaviour.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the esb-issues mailing list