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

Claus Ibsen commented on CAMEL-9245:
------------------------------------

Here
https://github.com/apache/camel/blob/master/components/camel-paho/src/main/java/org/apache/camel/component/paho/PahoComponent.java#L36

you grab the remainder and use that as the topic

endpoint.setTopic(remainder);

and then you dont need that other logic.

> camel-paho - Endpoint should allow a flexible naming.
> -----------------------------------------------------
>
>                 Key: CAMEL-9245
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9245
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-paho
>            Reporter: Jaume Teixi
>            Priority: Minor
>             Fix For: 2.17.0, 2.16.1
>
>
> If endpoint doesn't match exactly paho: it fails to publish to the correct 
> topic.
> Once should be able in Spring to @Autowired two different PahoComponent 
> pointing to different Application Context defined PahoComponent bean id'S.
> Currently if bean id is not named exactly paho it fails to publish to the 
> correct topic and for example instead of input/1 publishes to t://input/1 
> when id is mypaho instead of paho



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to