camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <>
Subject Re: how to obtain camel-smpp submit message id
Date Fri, 14 Dec 2012 17:36:26 GMT
I checked the code of SpringIntegrationConsumer (I'm not really familiar
with Spring Integration), and I think I see the problem:

SpringIntegrationConsumer exclusively create InOnly exchanges for the
incoming org.springframework.integration.Message. Because of this, the
Camel SMPP component will set the header CamelSmppId on the in message. But
the SpringIntegrationConsumer "only" set the out message into the returned
org.springframework.integration.Message. That's the reason why you don't
see it.

Explicitly setting the exchange pattern should solve your issue:

<camel:route id="OutboundRoute" >
  <camel:from uri="outgoingSpringIntegrationChannel"/>
  <camel:setExchangePattern pattern="InOut"/>
  <camel:to uri="smpp://pavel@localhost
  <camel:bean ref="messageIdProcessor" method="process"/>

Feel free to raise a JIRA [1] and propose a solution - maybe including a
patch with unit tests [2].
I think the SpringIntegrationConsumer should create InOut or InOnly
exchanges depending on the "inOut" instance variable in
SpringIntegrationEndpoint. Only my 0,02 €...



On Tue, Dec 11, 2012 at 11:41 PM, Johanes Soetanto <>wrote:

> outgoingSpringIntegrationChannel"


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message