Question on CamelServlet's matchOnUriPrefix

2013-05-10 Thread kalyan
above logic DOES NOT for "http://localhost:8080/camel/rs/users/123";. It gets resolved to "http://://people/users/123" Is there a way I could get rid of the additional "/users" in the second scenario ? Regards, Kalyan -- View this message in context: http://camel.

How to use camel servlet as httpproxy

2013-05-10 Thread kalyan
Hello, I'm currently working on Camel with JavaDSL. what I would like to have is: from("servlet:///route*").to("http:///test/*?bridgeEndpoint=true") I would like to have both the stars ("*") in from() and to() as same. Is this possible ? Regards, Kalyan

Re: How to use camel servlet as httpproxy

2013-05-10 Thread kalyan
Sorry for the lame question. The answer is at camel-servlet documentation . I needed from("servlet:///hello?matchOnUriPrefix=true") -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-camel-servlet-as-httpproxy-tp5732297p57323

Re: How to use camel servlet as httpproxy

2013-05-11 Thread kalyan
Hello Claus, Thank you for the reply. However this option is is taking care of only PATH and not query params. Is there a way to instruct camel to cascade the query params as well ? Regards, Kalyan -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-camel-servlet-as

Re: Question on CamelServlet's matchOnUriPrefix

2013-05-11 Thread kalyan
I could get this working by updating Exchange.HTTP_PATH in WAR2 using a processor. -- View this message in context: http://camel.465427.n5.nabble.com/Question-on-CamelServlet-s-matchOnUriPrefix-tp5732305p5732313.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to use camel servlet as httpproxy

2013-05-11 Thread kalyan
Also I tried setting it by Exchange.HTTP_PATH with no luck as follows: exchange.getIn().setHeader(Exchange.HTTP_PATH, path); -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-camel-servlet-as-httpproxy-tp5732297p5732339.html Sent from the Camel - Users mailing list

Re: How to use camel servlet as httpproxy

2013-05-13 Thread kalyan
I noticed that there was a problem in stub implementation and so GET requests were not working properly. I don't think it is an issue with camel anymore. However, I notice that Camel specifically removes Content-Type header for GET requests even when the incoming request (to say "servlet:///test"

How do I change message body without changing response status

2013-05-13 Thread kalyan
hen I have handled(true), it changes the response status to 200. However, I would like to update only the body information (to "There was an exception") when there is an exception without changing other values. Is this possible ? Regards, Kalyan -- View this message in context: http://

onException: Global declaration at CamelHttpTransportServlet

2013-05-13 Thread kalyan
When a RouteBuilder defines onException in the following way, is it available for all RouteBuilders of the same CamelContext ? RouteBuilder routeBuilder = new RouteBuilder() { @Override public void configure() { onException(HttpOperationFailedException.class

Re: How do I change message body without changing response status

2013-05-13 Thread kalyan
Thank you for the reply Claus. However, the HTTP response code received is not constant. It changes with the input url (like 400, 404, 500, 503 etc). handled(true) is changing it to 200. Is there a way to preserve the response code with out getting to know its value ? -- View this message in

Re: How do I change message body without changing response status

2013-05-13 Thread kalyan
I'm sorry.. but I have just found the solution. what I needed was: HttpOperationFailedException ex = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, HttpOperationFailedException.class); ex.getStatusCode(); Thank you. -- View this message in context: http://camel.465427.n5.nab

Why is lazyLoadTypeConverters deprecated ?

2013-05-14 Thread kalyan
, I have set the property to false and tried a try run on my code and it seems to work fine (I don't have any custom Type Converters in code). Is there any specific reason for doing this ? I ask because it could save memory and may prove to be useful after all. Regards, Kalyan -- View

Re: onException: Global declaration at CamelHttpTransportServlet

2013-05-14 Thread kalyan
Thank you. So I guess, the same holds good for handling the exceptions in vm, direct-vm calls. -- View this message in context: http://camel.465427.n5.nabble.com/onException-Global-declaration-at-CamelHttpTransportServlet-and-bestpractices-tp5732428p5732491.html Sent from the Camel - Users mail

Re: Making a route depend on multiple criteria

2013-05-14 Thread kalyan
I'm a newbie here. But what ever you described may be handled with multiple routes. Use "direct:" for synchronous and "seda:" for asynchronous routing as described in documentation for joining all the routes you create. -- View this message in context: http://camel.465427.n5.nabble.com/Making-a

bridgeEndpoint=true not working in Camel 2.11.0

2013-05-17 Thread kalyan
are working fine. Anyone faced this issue ? Regards, Kalyan -- View this message in context: http://camel.465427.n5.nabble.com/bridgeEndpoint-true-not-working-in-Camel-2-11-0-tp5732763.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: bridgeEndpoint=true not working in Camel 2.11.0

2013-05-17 Thread kalyan
from("servlet:///test?matchOnUriPrefix=true") .filter(new MyPredicate()) .to("http://localhost:8080/sample/baseurl?bridgeEndpoint=true";) class MyPredicate implements Predicate { @Override public boolean matches(final Exchange exchange) { //return true for

Re: bridgeEndpoint=true not working in Camel 2.11.0

2013-05-17 Thread kalyan
I think it is "matchOnUriPrefix=true" which is not working more than "bridgeEndpoint=true". -- View this message in context: http://camel.465427.n5.nabble.com/bridgeEndpoint-true-not-working-in-Camel-2-11-0-tp5732763p5732776.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How can I dynamically add or modify endpoints in a route?

2013-05-17 Thread kalyan
Did you try it using Dynamic router ? -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-dynamically-add-or-modify-endpoints-in-a-route-tp5732775p5732777.html Sent from the Camel - Users mailing list archive at Nabble.c

Re: bridgeEndpoint=true not working in Camel 2.11.0

2013-05-19 Thread kalyan
Anyone else could noticed this problem ? I can still reproduce this issue. -- View this message in context: http://camel.465427.n5.nabble.com/bridgeEndpoint-true-not-working-in-Camel-2-11-0-tp5732763p5732808.html Sent from the Camel - Users mailing list archive at Nabble.com.

can httpClient.soTimeout be set through Header params ?

2013-05-28 Thread kalyan
;httpClient.soTimeout" in the following way, it fails to work. private class MyProcessor() { public void process(final Exchange exchange) throws Exception { exchange.getIn().setHeader("httpClient.soTimeout", 1); } } Thanks in advance -Kalyan -- View this

Global definition for HttpClient.XXX options

2013-05-28 Thread kalyan
Hello, >From what I see in camel documentation (http://camel.apache.org/http.html), every url needs to httpClient.XXX definitions in the query params. Is there a global way to define all these so that it is not repeated for all URLs which increases maintenance effort ? Regards, Kal

Problem with httpClient.connectionManagerTimeout on Camel 2.10.4

2013-05-28 Thread kalyan
o timeout immediately. However, Camel sends the request and waits for the response for more than 30 seconds. Why is the above example not working ? Also, how do I simulate a "Connection Timeout" using camel (need it for a testcase). Thanks in advance. -Kalyan -- View this message

Camel with BeanFactory

2013-04-29 Thread Kalyan Dev
? If so, what are the classes that I need to overwrite. Any documentation on this will be of great help. Regards, Kalyan

Need help

2014-08-15 Thread Radhakrishna Kalyan
sending email, the application does not wait for the next message to come to the queue. Any pointers how I can solve. Do I need to use any demon thread running infinitely. -- Thanks and Regards N Radhakrishna Kalyan P: +46 733 312 584 http://about.me/nrkkalyan <http://about.me/nrkkalyan>

Need help

2014-08-18 Thread Radhakrishna Kalyan
e. Correct me if I am wrong, I think I need to create 3 endpoints 2 for jms queues and 1 for ftp. I am struck at, do I need a DataFormat or a Processor or any thing else. Can somebody give me some pointers here. Thanks in advance. -- Thanks and Regards N Radhakrishna Kalyan P: +46 733 312 584 http://about.me/nrkkalyan <http://about.me/nrkkalyan>

Questions related to Processor or DataFormat

2014-08-18 Thread Radhakrishna Kalyan
the terminologies. Can you please provide any examples with a proper use case. -- Thanks and Regards N Radhakrishna Kalyan P: +46 733 312 584 http://about.me/nrkkalyan <http://about.me/nrkkalyan>