camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtod09 <m...@thetods.net>
Subject Re: AW: Camel ActiveMQ JMS Calls using SSL
Date Thu, 18 May 2017 15:28:27 GMT
Thanks this helps.

What I'm looking for is a Java Camel Client example using JMS SSL ie
ssl://broker:61617
Note: I'm using SpringBoot for creating a Camel Microservice for AWS I'll
need to have all the connections run over SSL.

Example:

@Component
public class ESBRoute1 extends RouteBuilder {

    private String validatorStr =
"validator:http://xxxxx-dev.xxxxxx.com/messaging/esb/ESBMessageV3.xsd";
    private String namespaceStr = "http://xxxxx.xxxxx.com/messaging/esb";

 @Override
    public void configure() throws Exception {

        from("activemq:queue:esb.*")
		.doTry()
		.to(validatorStr)
                .setHeader("Route1",
xpath("/km:FMIMessage/km:Header/km:Route/text()",String.class).namespace("km",namespaceStr))
                .setHeader("FMIHeader",
xpath("/km:FMIMessage/km:Header").namespace("km",namespaceStr))
               
.recipientList().header("Route1").delimiter(",").convertBodyTo(String.class)
                .log(LoggingLevel.DEBUG,simple("Full Message Sent:\r\n
${body}").toString())
                .log(LoggingLevel.INFO,simple("Header Message:\r\n
${header.FMIHeader}").toString())
            .end();
    }
}



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-ActiveMQ-JMS-Calls-using-SSL-tp5799791p5799794.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message