Details
-
Enhancement
-
Resolution: Done
-
Major
-
2.10.0-fuse-71-047
-
None
-
None
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?