Hi there,

Is the following code valid... my goal is to ensure that the MINA connection
I'm using is closed upon having received a reply:

  Object replyMessage = producerTemplate
      .requestBodyAndHeader(
          smsSenderEndpoint,
          requestMessage,
          MinaConsumer.HEADER_CLOSE_SESSION_WHEN_COMPLETE,
          true);

The doco. implies that the above header value is useful in server style
scenarios hence my question around using a consuming template call.

I'd like to confirm whether it is necessary for me to specify this header in
the context of using a template; particularly if the same template is
invoked again to send another message very soon after receiving a reply to
the previous one.

Thanks.

Kind regards,
Christopher
-- 
View this message in context: 
http://old.nabble.com/requestBodyAndHeader-and-HEADER_CLOSE_SESSION_WHEN_COMPLETE-tp27175565p27175565.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to