apache-camel

Simple unit test for Apache Camel SNMP route

北城余情 提交于 2021-02-20 04:15:09
问题 I'm having some trouble getting a working Camel Spring-Boot unit test written, that tests a simple SNMP route. Here is what I have so far: SnmpRoute.kt open class SnmpRoute(private val snmpProperties: SnmpProperties, private val repository: IPduEventRepository) : RouteBuilder() { @Throws(Exception::class) override fun configure() { logger.debug("Initialising with properties [{}]", snmpProperties) from("snmp:0.0.0.0:1161?protocol=udp&type=TRAP") .process { exchange -> // do stuff } .bean

Standalone spring app XA transactions with IBM MQ and Oracle as resources

百般思念 提交于 2021-02-19 07:11:27
问题 I am in the process of developing a stand alone Apache camel application (not running on a J2EE container). This apps needs to be capable of routing messages from an IBM MQ queue manager to an Oracle database in a distributed transaction. My google searches pretty much took me to a few places but none of those were able to give me some good clues about how to put everything together. This link below was the closest to what I need but unfortunately it is not cler enough to put me on the right

Standalone spring app XA transactions with IBM MQ and Oracle as resources

喜你入骨 提交于 2021-02-19 07:06:48
问题 I am in the process of developing a stand alone Apache camel application (not running on a J2EE container). This apps needs to be capable of routing messages from an IBM MQ queue manager to an Oracle database in a distributed transaction. My google searches pretty much took me to a few places but none of those were able to give me some good clues about how to put everything together. This link below was the closest to what I need but unfortunately it is not cler enough to put me on the right

Standalone spring app XA transactions with IBM MQ and Oracle as resources

拟墨画扇 提交于 2021-02-19 07:05:34
问题 I am in the process of developing a stand alone Apache camel application (not running on a J2EE container). This apps needs to be capable of routing messages from an IBM MQ queue manager to an Oracle database in a distributed transaction. My google searches pretty much took me to a few places but none of those were able to give me some good clues about how to put everything together. This link below was the closest to what I need but unfortunately it is not cler enough to put me on the right

Configure SSL on Camel rest-component using Spring-Boot with embedded Jetty

主宰稳场 提交于 2021-02-19 05:48:18
问题 Been bashing my head in for a few days trying to get SSL working with an existing rest endpoint. Currently using self-signed certificates in a jks. We have a rest route (not this route, but very similar): @Override public void configure() { restConfiguration() .component("jetty") .scheme("https") .bindingMode(RestBindingMode.off) .dataFormatProperty("prettyPrint", "true") .port(8443); rest("/post") .post() .consumes("application/json") .produces("application/json") .to( // next endpoint // );

cxf setting Nonce and created in SOAP wsse header

家住魔仙堡 提交于 2021-02-17 03:20:33
问题 I wanted to inject Nonce and Created element in WSSE security header using CXF. <soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-6"> <wsse:Username>==Username==</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0

How to convert CSV to XML in Java using JAXB

陌路散爱 提交于 2021-02-11 15:12:41
问题 I am trying to consume a CSV file using apache camel and convert each row to XML and publish each xml to solace topic. XML format is complex and I am not sure how to create such a complex XML in Java. CSV contains employee payload fields. Other part of XML including header, auditRecords and ancillaryData are hardcoded/static data(timestamp can be current date). How to convert CSV to XML in Java using JAXB? <canonMessage xmlns="http://www.test.com/canon/v1"> <header> <metadata> <domain> <name

How to convert CSV to XML in Java using JAXB

一世执手 提交于 2021-02-11 15:11:26
问题 I am trying to consume a CSV file using apache camel and convert each row to XML and publish each xml to solace topic. XML format is complex and I am not sure how to create such a complex XML in Java. CSV contains employee payload fields. Other part of XML including header, auditRecords and ancillaryData are hardcoded/static data(timestamp can be current date). How to convert CSV to XML in Java using JAXB? <canonMessage xmlns="http://www.test.com/canon/v1"> <header> <metadata> <domain> <name

Having configuration files outside jar file in Spring Boot

跟風遠走 提交于 2021-02-11 14:52:22
问题 I have a Spring boot camel application whose directory structure is like this I want to convert this project into a jar file. But I want 3 files outside my jar so that I don't need to redeploy my application again and again when the configuration is changed. those 3 files are application.properties CamelContext.xml sql.properties I have the flexibility to hardcode the path of the file location. Can anyone help me out how do I achieve this? 回答1: Since I have resolved the issue I will post the

cxf setting Nonce and created in SOAP wsse header

拟墨画扇 提交于 2021-02-11 13:27:46
问题 I wanted to inject Nonce and Created element in WSSE security header using CXF. <soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-6"> <wsse:Username>==Username==</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0