Re: AW: Dynamic routing based on collection values

2016-10-24 Thread Steve973
And, by default, that is a lot of threads that are not needed for his use case. Though I am not sure how many threads are created vs used when you are doing a recipient list and a splitter. On Mon, Oct 24, 2016 at 2:51 PM, Brad Johnson wrote: > How many producer templates would be produced? Th

Re: Authentication Header Missing from CXF Endpoint

2016-10-24 Thread Brad Johnson
In addition to trying the requestBodyHeader (or whatever the request name is) have you tried looking the results of the Exchange you get back by calling getException? On Mon, Oct 24, 2016 at 3:25 PM, Brad Johnson wrote: > Are you sending a Processor across? I've really no idea if that would >

Re: Authentication Header Missing from CXF Endpoint

2016-10-24 Thread Brad Johnson
Are you sending a Processor across? I've really no idea if that would work or not. It's an object so I suppose if you cast the object on the other side you'd end up with the Processor back(?) Have you tried on of the methods like producerTemplate.request(endpointURI,body, Map) where the map co

Re: AW: Dynamic routing based on collection values

2016-10-24 Thread Brad Johnson
How many producer templates would be produced? There's only a single handler instantiated so if there are 5 routes that's 5 producer templates. On Mon, Oct 24, 2016 at 1:32 PM, Steve973 wrote: > I'd worry about the overhead of creating so many producer templates. I > would probably set a header

Re: AW: Dynamic routing based on collection values

2016-10-24 Thread Steve973
I'd worry about the overhead of creating so many producer templates. I would probably set a header that contains a map of keys to destinations, then you could set a recipient list of one endpoint that contains the value at that key. Maybe brad's method isn't as overhead intensive because the templa

Accessing Websphere MQ using credentials

2016-10-24 Thread ganga_camel
Hi, I am trying to connect to WMQ using UserName and password. As per one of the posts in the User group, I tried the below code for creating a wmq component @Bean MQQueueConnectionFactory jmsConnectionFactory() { jmsConnectionFactory = new MQQueueConnectionFactory(); try

Authentication Header Missing from CXF Endpoint

2016-10-24 Thread aravind r
Hi All, Any help is appreciated as i am trying to solve this for 2 days now. Trying to unit test a CXF end point secured with Spring Authentication. I tried passing in as below the Authentication header however when it reaches my CXF Endpoint and down to route. The header is missing. I tried a l

Re: SEDA with Aggregation

2016-10-24 Thread Vince Iglehart
That is helpful. With the completionTimeout() I would like to group messages coming in through the webservice so that RouteB is not called multiple times. For example if there are 500 messages with the same payload coming in through the webservice, I would like to aggregate all of them into 1 m

Re: IDE for newer Camel versions using Camel Spring Boot

2016-10-24 Thread Mark Nuttall
Fyi STS has property autocompletion with docs :). I recommend Claus's video. I was going to mention it but figured he would. On Oct 24, 2016 3:18 AM, "Claus Ibsen" wrote: > Hi > > There is also the fabric8 Camel forge tooling for Apache Camel > http://fabric8.io/guide/forge.html > > As well the

Re: Karaf - 4.0.7(Felix): JmsBinding not found

2016-10-24 Thread Matt Sicker
Does that also apply to using just the activemq-client bundle? On 24 October 2016 at 02:19, Claus Ibsen wrote: > Hi > > Apache ActiveMQ do not support Camel 2.18 on Karaf. > > ActiveMQ 5.15.0 will very likely support Camel 2.18. You need to use > an older version of Camel if you want to run Acti

Cannot find class CamelContextFactory in Camel 2.18.0

2016-10-24 Thread Bengt Rodehav
I'm running Camel in Karaf 4.0.7. I'm about to upgrade from Camel 2.17.2 to Camel 2.18.0. CamelContextFactory is in package org.apache.camel.osgi. In Camel 2.17.2 this class resided in component camel-spring which exported this package. In Camel 2.18.0 this class instead resides in component cam

Re: AW: Dynamic routing based on collection values

2016-10-24 Thread Brad Johnson
This is also one of those fuzzy areas where sometimes it is easier to simply pass the message body into a bean and then use ProducerTemplate instances to send values us different routes. Under normal circumstances I wouldn't do it that way as Camel does a great job of heavy lifting. But in some c

Re: AW: Dynamic routing based on collection values

2016-10-24 Thread raghavender.anth...@gmail.com
Thanks a lot for the response. This seems like useful, I'll give out a try and will update you accordingly. Best, Raghavender Anthwar -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-routing-based-on-collection-values-tp5789157p5789179.html Sent from the Camel - Users

AW: Dynamic routing based on collection values

2016-10-24 Thread jhm
Here an example what I unterstood. Jan package de.materne.camel; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import org.apache.camel.EndpointInject; import org.apache.camel.RoutesBuilder; import org.apache.camel.builder.RouteBuilder; import org.apache

Re: Dynamic routing based on collection values

2016-10-24 Thread Steve973
The easiest way that I can think of is to send map.entryset in the message body instead of the map itself. Then you can simply do .split().body(). That should work for you. On Mon, Oct 24, 2016 at 5:52 AM, raghavender.anth...@gmail.com < raghavender.anth...@gmail.com> wrote: > Thanks will tr the

Re: Dynamic routing based on collection values

2016-10-24 Thread raghavender.anth...@gmail.com
Thanks will tr the split method. Is there any example available on the web to split the collection? I searched but couldn't find much help. -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-routing-based-on-collection-values-tp5789157p5789169.html Sent from the Camel -

Re: Dynamic routing based on collection values

2016-10-24 Thread Steve973
Note that you will have to split on the map's entryset, since a map, itself, is not iterable. This is probably obvious, but I wanted to mention it anyway, since splitting requires an iterable to split. On Mon, Oct 24, 2016 at 5:16 AM, Steve973 wrote: > Have you tried first using splitter, and t

Re: Dynamic routing based on collection values

2016-10-24 Thread Steve973
Have you tried first using splitter, and then using a choice to determine the route? From the example in "Composed Message Processor", they do something similar: // split up the order so individual OrderItems can be validated by the appropriate bean from("direct:start") .split().body() .c

Re: Dynamic routing based on collection values

2016-10-24 Thread raghavender.anth...@gmail.com
I've gone through the document of recipient list and seems it send the same copy of the message to all routes. I'm looking for sending each value of the map to a different router based on the key. Thank you. -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-routing-b

Re: AW: Dynamic routing based on collection values

2016-10-24 Thread raghavender.anth...@gmail.com
Basically I've the map that was mentioned in the post as input in the incoming message. And I wanted to iterate over each key of the map and send it as input to different endpoint based on the key value. Yes, it's kind of content based routing but the content is a collection here. -- View this

Re: Dynamic routing based on collection values

2016-10-24 Thread raghavender.anth...@gmail.com
Thanks for the quick response but I don't see whether recipient list can iterate over the map and send each of the value to different endpoint. Can you point me to a specific example where the routing is done based on the collection values in the incoming message? Sorry, am a beginner to Camel so

AW: Dynamic routing based on collection values

2016-10-24 Thread jhm
So you want to split [1] the list into Key-Value-Pairs and do a content based routing [2]? Jan [1] http://camel.apache.org/splitter.html [2] http://camel.apache.org/content-based-router.html > -Ursprüngliche Nachricht- > Von: raghavender.anth...@gmail.com > [mailto:raghavender.anth...@

Re: Dynamic routing based on collection values

2016-10-24 Thread ravi narayanan
Please have a look at recipient list EIP. http://camel.apache.org/recipient-list.html On Monday, 24 October 2016, raghavender.anth...@gmail.com < raghavender.anth...@gmail.com> wrote: > Hello All, > > Can someone help me with a solution for this problem: > > I want to route to different destinati

Dynamic routing based on collection values

2016-10-24 Thread raghavender.anth...@gmail.com
Hello All, Can someone help me with a solution for this problem: I want to route to different destinations based on the values that are present in the collection. For example, I've a map/any other collection with list of different values. I want to iterate over the collection and want to route th

Re: Karaf - 4.0.7(Felix): JmsBinding not found

2016-10-24 Thread Claus Ibsen
Hi Apache ActiveMQ do not support Camel 2.18 on Karaf. ActiveMQ 5.15.0 will very likely support Camel 2.18. You need to use an older version of Camel if you want to run ActiveMQ broker embedded inside Karaf and have Camel installed at the same time. On Fri, Oct 21, 2016 at 6:18 PM, akpcnu wr

Re: old javadocs on website?

2016-10-24 Thread Claus Ibsen
Hi Thanks I have updated the link to point to a better site that always has up to date javadoc. On Sat, Oct 22, 2016 at 5:58 PM, Tim Dudgeon wrote: > This page on the website: https://camel.apache.org/javadoc.html links to > here http://camel.apache.org/maven/current/camel-core/apidocs/index.htm

Re: IDE for newer Camel versions using Camel Spring Boot

2016-10-24 Thread Claus Ibsen
Hi There is also the fabric8 Camel forge tooling for Apache Camel http://fabric8.io/guide/forge.html As well the maven plugin to validate your Camel endpoints/expressions http://fabric8.io/guide/camelMavenPlugin.html The forge tooling works in any IDE such as Eclipse, IDEA or NetBeans. I recorde