[ 
https://issues.apache.org/jira/browse/CAMEL-15950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17250384#comment-17250384
 ] 

ncasaux commented on CAMEL-15950:
---------------------------------

I agree that synthax
{code:java}
.enrich(direct("myEndpoint").failIfNoConsumers(false)){code}
works.

However, it seems that we lose the ability to set the expression language, as 
it would be always "simple" ? Wouldn't it be a problem if we want specifically 
for example a "constant" expression language endpoint ?

> JMX data for processors - Expression/ExpressionLanguage
> -------------------------------------------------------
>
>                 Key: CAMEL-15950
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15950
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 3.6.0
>            Reporter: ncasaux
>            Priority: Minor
>              Labels: jmx, managedbeans, processor
>             Fix For: 3.8.0
>
>
> Hello,
> Currently, when we use endpoint-dsl Camel 3 synthax like this:
> {code:java}
> .enrich().constant(direct("myEndpoint").failIfNoConsumers(false))
> {code}
> the available data for this processor exposed through JMX related to the 
> expression and the expression language is not really usefull.
> Indeed, the expression language is empty, and the expression value is 
> something like:
> {code:java}
> org.apache.camel.builder.ExpressionClause@7c098bb3
> {code}
> It would be nice if we could have the equivalent of what we get when we use 
> the getUri() method of the endpoint, like this:
> {code:java}
> .enrich().constant(direct("enrichConstant").failIfNoConsumers(false).getUri())
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to