camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Custom Exchange ID
Date Thu, 14 Apr 2011 03:18:33 GMT
Yes, it's hard to change unless you extends the JMS component and 
override this method.

I just created a JIRA CAMEL-3859[1] for it.

[1]https://issues.apache.org/jira/browse/CAMEL-3859

Willem

On 4/13/11 11:46 PM, kumaap wrote:
> Hi thanks for that .. but theres another issue we consuming messages off
> multiple JMS  providers
>
> Camel 2.5 JmsMessage class
>
> @Override
>      protected String createMessageId() {
>          if (jmsMessage == null) {
>              if (LOG.isTraceEnabled()) {
>                  LOG.trace("No javax.jms.Message set so generating a new
> message id");
>              }
>              return super.createMessageId();
>          }
>          try {
>              String id =
> getDestinationAsString(jmsMessage.getJMSDestination()) +
> jmsMessage.getJMSMessageID();
>              return getSanitizedString(id);
>          } catch (JMSException e) {
>              throw new RuntimeExchangeException("Unable to retrieve
> JMSMessageID from JMS Message", getExchange(), e);
>          }
>      }
>
> It will always use the JMS qualifiers , its hardly ever the case that JMS
> messages have a null JMSMessageID. Is there a way to override this ?
>
> Cheers in advance
> kumaap0
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Custom-Exchange-ID-tp4300720p4300938.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com

Mime
View raw message