Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-721

Camel Simple Expression Language does not like a dot '.' in the parameter name

    XMLWordPrintable

Details

    Description

      I have following definition in my blueprint route:

             <setProperty propertyName="destinationEndpoint">
      		<simple>${bean:myBean?method=getEndpoint('{{fixedConsumerId}}', '${in.header.contextId}')}</simple>	
              </setProperty>
      

      Where 'fixedConsumerId' is a property placeholder:

      fixedConsumerId=FUSEv010
      

      It works ok and the 'getEndpoint' method gets called correctly on the bean referred to by 'myBean'. But when the 'fixedConsumerId' property contains a dot ('.') such as follows:

       
      fixedConsumerId=FUSEv01.0
      

      I get the following error when the route attempts to invoke on the bean..

      org.apache.camel.RuntimeCamelException: org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'myBean?method=getEndpoint('FUSEv01' could be found

      It seems that the 'simple' language notation gets confused when there is a dot '.' in the parameter name.

      Can we improve the Simple Expression Language to allow a dot '.' in the parameter name?

      Attachments

        Activity

          People

            cibsen@redhat.com Claus Ibsen
            rhn-support-qluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: