Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11280

camel-twitter : hard-coded component scheme

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.19.1, 2.20.0
    • camel-twitter
    • None
    • Unknown

    Description

      The camel twitter component parses the uri assuming the component has twitter as as scheme which is correct in most of the cases but could fail if one would pre-configure a number of twitter components:

      <bean id="tw-account-1" class="rg.apache.camel.component.twitter.TwitterComponent">
        <property name="accessToken" value="tokenForAccount1"/>
      </bean>
      
      <bean id="tw-account-2" class="rg.apache.camel.component.twitter.TwitterComponent">
        <property name="accessToken" value="tokenForAccount2"/>
      </bean>
      
      <camelContext>
        <route>
          <from uri="tw-account-1:search"/>  
          ...
        </rute>
        <route>
          <from uri="tw-account-2:timeline/mentions"/>  
          ...
        </rute>
      <camelContext/>
      

      Relevant code:

      Attachments

        Activity

          People

            lb Luca Burgazzoli
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: