Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
0
votes
1 answer

How to iterate over Map in camel route

I want to route to different destinations based on the values that are present in the Map. For example, I've a map with key and value. I want to iterate over the Map and want to route the message to different destination based on the key value of…
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
0 answers

how to use camel consumer template to consume all files in directory

I need to read all files from the directory and to process each file using consumerTemplate. something like below. consumerTemplate.receiveBody(directory, File.class)
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
2 answers

How to retrieve the SOAP header from exchange object in Camel?

We exposed an Apache camel-cxf webservice. Using camel processor we are trying to get the soap header that we passed in the soap request from the soapUi client. The exchange object contains the body of soap message(not soap header). In the…
Momo
  • 66
  • 1
  • 9
0
votes
1 answer

How to read a file and send as stream to another endpoint

I need to read a file using apache camel and send to another endpoint as stream. public class SimpleRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

Camel CQL Component - Query with multiple parameters

I'm creating an Camel route that consumes data from Cassandra DB using CQL component and I want to pass multiple parameters to the where statement. How can I pass multiple parameters to construct the prepared stratement internally? I've checked in…
0
votes
1 answer

How to use mockito in ExchangeTestSupport

I have camel route as below public class MainRouteBuilder extends RouteBuilder { @Autowired private CcsRouteCommonProperties commonProps; /** * {@inheritDoc} */ @Override public void configure() throws Exception { …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

How to create ConsumerTemplate in apache camel

I have camel processor which reads a file from directory using ConsumerTemplate as shown below @Component public class FileReaderProcessor implements Processor { @Consume private ConsumerTemplate consumerTemplate; /** *…
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
0 answers

Junit for apache camel multiple anonymous innerclass processor

I have created a camel-route with multiple anonymous innerclass for processors as below: from("direct:testRoute") .process(new Processor() { public void process(Exchange exchange) { …
0
votes
2 answers

Persisting JMS Message Headers during Message Redelivery

We have a camel route where we read a message from an input queue, process it, set some JMS Header( using Exchange.getIn().setHeader(...) ) and then route the message to some output queue. During MQ Failover scenario, the message is redelivered.…
Raju Parashar
  • 312
  • 4
  • 17
0
votes
1 answer

Camel route should be annotated with component or configuration

I have camel route which basically used to move files from source to destination as below public class SimpleRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { …
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

What is Redelivery and Rollback in Apache Camel?

I am new to apache camel and couldn't understand the difference between Redelivery and Rollback.. Could you please help me understand this ?
Raju Parashar
  • 312
  • 4
  • 17
0
votes
1 answer

Apache Camel Ant Include pattern is not working as expected

I need to write a route which scans for files starts with batch and moves to destination directory. from(file:source?delay=2000&antInclude=batch*&readLock=changed).to(file:destination); After starting route, I have created a files in source…
rocky
  • 753
  • 2
  • 10
  • 26
0
votes
1 answer

Connecting hawtio with camel app in karaf

I have hawtio connected to jlokia agent on karaf 4.2.1. But i dont understand how can i connect hawtio to camel route(Spring dsl) deployed in karaf or some bundle? Maybe i need set jlokia agent in camelContext? Help me please with any…
0
votes
0 answers

Apache Camel : Sending parameters to direct

Planning to call same direct mutiple times using multicast to acheive parallelism and in need to send a parameter to the endpoint. I wish to use something like "direct:test?param=value1", "direct:test?param=value2" where param and value are set to…
0
votes
1 answer

How to do add signature to file using Apache camel

I need to add signature to a file not on the camel exchange, to a detached file using camel pgp. for example sample.json is plain file. after signing using camel PGP there should be two files, one is sample.json and sample.signed
rocky
  • 753
  • 2
  • 10
  • 26