Use-Case: I'm sending a request to IBM MQ Listener from Spring Boot App with Apache camel, while sending I have to change the MQ JMS Property JMS_IBM_Character_Set=UTF-8 but these changes are not reflecting at Listener side
Could anyone please help me how to change the property value for IBM MQ with Apache Camel
// Request Queue - one direction
@Component
public class RequestRouter extends RouteBuilder {
@Override
public void configure() throws Exception {
from("direct:request").
setProperty("JMS_IBM_Character_Set", constant("true")).
to("jms:REQUEST.Q1?disableReplyTo=true")
.log("Received Body is ${body} and header info is ${headers} ");
}
}
// Below one Request-Reply Queue
@Component
public class RequestReplyRouter extends RouteBuilder {
@Override
public void configure() throws Exception {
from("direct:request-reply").setProperty("JMS_IBM_Character_Set", constant("true"))
.to("log:like-to-see-all?level=INFO&showAll=true&multiline=true")
.to("jms:REQUEST.Q1?ReplyTo=REPLY.Q1&exchangePattern=InOut")
.log("Request-reply Body is ${body} and header info is ${headers} ");
from("jms:REPLY.Q1")
.log("Received Body is ${body} and header info is ${headers} ");
}
}