Re: Routes controlling + thread dsl

2012-09-12 Thread Nafees
I will incorporate ur suggestions, and come back again. Thank you Nafees -- View this message in context: http://camel.465427.n5.nabble.com/Routes-controlling-thread-dsl-tp5719019p5719163.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Issues with URI containing %40 or %26

2012-09-12 Thread Marco Crivellaro
Thanks for letting me know. The ticket doesn't have any target milestone, is there a short term plan to work on this issue? Othewise I suppose the only way out for me would be to roll back to last 2.8.x... -- View this message in context:

Re: SEDA and concurrentConsumers

2012-09-12 Thread Tim Dudgeon
Great. That works. Thanks. BTW, the example in the Camel in Action book (p 322) seems wrong then as it describes it the way I originally had it. Tim On 12/09/2012 03:34, Willem jiang wrote: You need set the seda endpoint parameter on the first one endpoint, because Camel will pickup the

Re: SEDA and concurrentConsumers

2012-09-12 Thread Claus Ibsen
On Wed, Sep 12, 2012 at 8:52 AM, Tim Dudgeon tdudgeon...@gmail.com wrote: Great. That works. Thanks. BTW, the example in the Camel in Action book (p 322) seems wrong then as it describes it the way I originally had it. The book is not wrong. The block parameter is on the *producer* side, so

Re: SEDA and concurrentConsumers

2012-09-12 Thread Claus Ibsen
On Wed, Sep 12, 2012 at 9:31 AM, Tim Dudgeon tdudgeon...@gmail.com wrote: OK, thanks. So I think I get it now. Some params need defining on the 'from' side and some on the 'to' side. And the order the queue appears in the routes is important. So this seems to work for me. Is this correct?

Performing Sticky load balancing in Camel.

2012-09-12 Thread balkishore
Hi I would like to perform sticky load balncing in apache camel based on the SOAP session, whcih is embedded in ServiceGroupID node of the first response. I wrote a small route as follow: from(uri) .loadBalance().sticky(xpath(query).namespaces(env).namespaces(wsa).namespaces(ax)) .to(BE1,BE2);

Re: Performing Sticky load balancing in Camel.

2012-09-12 Thread Claus Ibsen
As *always* with xpath, make sure it works first. For example set it to a header, and then use the camel tracer / log component etc. to log it. Also with xpath the result type is usually some XML type. And thus you need to set it to String if you want just text. There is a resultType on the

Re: Performing Sticky load balancing in Camel.

2012-09-12 Thread Willem jiang
Instead of using camel-cxf component, this is most effective way to do the load balancing. I think you can do some tracing work to see if the xpath expression return the right ServiceGroupID first. Then we can keep digging if the sticky load balancing is doing its job. -- Willem Jiang

Re: Performing Sticky load balancing in Camel.

2012-09-12 Thread balkishore
Hi, I just created a small java program just to check if my xpath provides me with the appropriate infromation that I want(i.e the ServiceGroup ID) And I go the output as urn:uuid:99A029EBBC70DBEB221347349722532, the term after urn:uuid: is the session Id. So are the terms urn:uuid: culprit?

Must File component write the body?

2012-09-12 Thread Tim Dudgeon
When using the File component to write to a file is it always the message body that is written, or is it possible to use an expression (e.g. simple)? Of course body can be replaced with new content using an expression, but is that the only way to do this? Tim

Re: Performing Sticky load balancing in Camel.

2012-09-12 Thread balkishore
Is substring supported in camel by the way? some thing like this xpath.compile(substring(string(/*[local-name()='Envelope']/*[local-name()='Header']/*[local-name()='ReplyTo']/*[local-name()='ReferenceParameters']/*[local-name()='ServiceGroupId']/text()), 10)); Return me an error, saying

Re: Must File component write the body?

2012-09-12 Thread Claus Ibsen
On Wed, Sep 12, 2012 at 11:54 AM, Tim Dudgeon tdudgeon...@gmail.com wrote: When using the File component to write to a file is it always the message body that is written, or is it possible to use an expression (e.g. simple)? Of course body can be replaced with new content using an expression,

Filtering on message body content

2012-09-12 Thread chris . odom
I created a route that I was trying to use to filter messages from a destination. @Override public void configure() throws Exception { from(requestEndpoint).routeId(createRouteId()) .filter(body(String.class).contains(content))

How to make Apache camel to search an expression in SOAP response.

2012-09-12 Thread balkishore
I am caught in this problem for a while now and am not able to figure out how to solve it. I have a client that sends a SOAP request and gets a SOAP response from the servers. I have written a wrote to do a sticky load balance: from(uri) .loadBalance().sticky(xpath(query2)) .to(BE1,BE2); If i

Re: How to make Apache camel to search an expression in SOAP response.

2012-09-12 Thread Claus Ibsen
Hi You have already posted about this in another thread. Please dont start new topics about the same. On Wed, Sep 12, 2012 at 3:49 PM, balkishore balkishore.pan...@gmail.com wrote: I am caught in this problem for a while now and am not able to figure out how to solve it. I have a client

Re: Filtering on message body content

2012-09-12 Thread Claus Ibsen
If the messages gets dequed only, then the expression returns false, so the message gets dropped. Make sure the value content has been set before the configure method is invoked. For example you can do a System out println of content variable from the configure meyhod. It may be null at the time.

Setting properties on Camel CXF consumer endpoints

2012-09-12 Thread Jens
Hi, I have a simple bridging route defined as The toBean has a WS-Policy attached that demands a UsernameToken. As per the CXF documentation I try to set the username and password on the toBean like this: However, it seems those properties are simply discarded, and the CXF Policy

Re: Filtering on message body content

2012-09-12 Thread chris . odom
Thanks for the response Claus, Here is the routes Description: EventDrivenConsumerRoute[Endpoint[activemq://queue:esigSigRqst] - Instrumentation:route[UnitOfWork(RouteContextProcessor[Channel[Filter[if: bodyAs[java.lang.String] contains POS do:

Re: Filtering on message body content

2012-09-12 Thread Claus Ibsen
And without the filter so its straight from - to. Does that work for you? On Wed, Sep 12, 2012 at 4:26 PM, chris.o...@mediadriver.com wrote: Thanks for the response Claus, Here is the routes Description: EventDrivenConsumerRoute[Endpoint[activemq://queue:esigSigRqst] -

Re: Filtering on message body content

2012-09-12 Thread chris . odom
The idea is to start up a route to selectively move messages from one queue to another based on an expression. This is, as far as I know, the Selective Consumer EIP. The idea would be if the filter returns true, move the message to the next destination otherwise leave it in the

Re: Filtering on message body content

2012-09-12 Thread chris . odom
I have also have another route that uses this which works correctly... @Override public void configure() throws Exception { from(requestEndpoint).routeId(createRouteId()) .filter(header(headerName).isEqualTo(headerValue))

Re: Using correlationid to isolate jms queues in multiple camelContexts

2012-09-12 Thread Pontus Ullgren
Hello, The way you see it behave is the way it should behave. If you have competing consumers on a queue they will consume messages in that way. If I interpreted your requirement correctly you have messages from a# that can only be consumed by c# and messages from b# that can only be consumed by

Re: Camel vs BPEL

2012-09-12 Thread Bing Lu
thanks for the links. I'm trying to convince them why camel is better than BPEL in the system integration world, any suggestions welcome On Wed, Sep 12, 2012 at 5:37 PM, chris snow chsnow...@gmail.com wrote: you may find these links useful:

Re: Camel vs BPEL

2012-09-12 Thread Donald Whytock
Camel's a lot cheaper than Oracle...? On Wed, Sep 12, 2012 at 5:58 PM, Bing Lu real...@gmail.com wrote: thanks for the links. I'm trying to convince them why camel is better than BPEL in the system integration world, any suggestions welcome On Wed, Sep 12, 2012 at 5:37 PM, chris snow

ApacheCon EU 2012 - Sinnsheim

2012-09-12 Thread Christian Müller
I want to know who is planning to join ApacheCon EU 2012 in Sinnsheim, Germany (5th November - 8th November)? We will have 5 talks in the Camel in Action track (one of them is about ActiveMQ and four talks about Camel)... Somebody interested in a get together evening event? If so, I would try to

Multicast, redelivery and error handlers

2012-09-12 Thread jimbogaz
Hi all. I think I'm missing something obvious, but I can't find anything here that is similar to my problem, or any docs that tell me it's obvious James you twerp: I've put together a route that multicasts to three direct routes, which simply return setBody type responses. I have intentionally

Re: Multicast, redelivery and error handlers

2012-09-12 Thread jimbogaz
Oh, and the asyncCallbackRequestBody call is intentional (I am under the impression that this is a way to have an InOut route that doesn't block the initiating thread... my multicast routes will eventually be CXF over JMS calls). -- View this message in context: