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
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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 -
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
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
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
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
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
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...@
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
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
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
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
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
27 matches
Mail list logo