Re: Stream Caching when uploading a binary file

2013-11-22 Thread ramrubio
Hi Claus, running with -XX:MaxPermSize=256M file size is 378MB. My understanding was that files larger than 128KB were streamed for Camel version 2.12.1. Is this not the case? /Ramon -- View this message in context: http://camel.465427.n5.nabble.com/Stream-Caching-when-uploading-a-binary-f

Stream Caching when uploading a binary file

2013-11-21 Thread ramrubio
Camel version = 2.12.1 I'm using camel to implement an http proxy. streamcache is enabled but when a client submits a http file upload request the following exception occurs. The proxy is working great for all other requests. Does streamcache support binary file upload? Is there any other conf

Re: Camel V2.12 HttpConnectionParams

2013-09-17 Thread ramrubio
Thanks Willem. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-V2-12-HttpConnectionParams-tp5739596p5739698.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel V2.12 HttpConnectionParams

2013-09-16 Thread ramrubio
Updating to use camel v2.12 from 2.11. The following configuration code use to work on 2.11 but no longer works on 2.12. On 2.12 the defaults are always used and consequently eventually http requests hang due to limit of maxConnectionsPerHost=2 and maxTotalConnections=10. Is there something i'm

Re: stream caching to HTTP end point

2013-08-12 Thread ramrubio
Thanks Claus. -- View this message in context: http://camel.465427.n5.nabble.com/stream-caching-to-HTTP-end-point-tp5736608p5737181.html Sent from the Camel - Users mailing list archive at Nabble.com.

stream caching to HTTP end point

2013-07-31 Thread ramrubio
Attempting to implement a proxy service to route requests dynamically using DynamicRouter pattern suggested by http://camel.apache.org/dynamic-router.html. I'm unsuccessful though in getting streamcaching to work. I've enabled streamcaching on the CamelContext but when the proxysvc forwards the

Re: StreamCaching with slip not working

2013-07-22 Thread ramrubio
Stepping through code noticed that InputStreamRequestEntity is used during post request. A call to InputStreamRequestEntity.getContentLength leads to a call to bufferContent because contentLength is set to CONTENT_LENGTH_AUTO. The type of inputStream that is set in InputStreamRequestEntity is of

StreamCaching with slip not working

2013-07-22 Thread ramrubio
SampleProxySvc.zip Camel version = 2.11.0 commons.httpclient version = 3.0.1 Attempting to implement a proxy service to route requests dynamically using DynamicRouter pattern suggested by http://camel.apache.org/dynamic-router

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-07-19 Thread ramrubio
Hi William, Attached is zip file with two projects. 1. sample.proxysvc - Contains camel proxy 2. sample.restsvc - Simple rest servic SampleProxySvc.zip e You will notice that proxysvc enables streamcaching on camel context

Re: Servet Componnet HttpSession

2013-06-19 Thread ramrubio
camel version is 2.10.4. route is: this.from("servlet:///?matchOnUriPrefix=true") .process(processor) .removeHeader(Exchange.HTTP_PATH) .dynamicRouter(method(CamelRoute.class, "slip")); -- View this message in context: http://camel.465427.n5.nabb

Re: Servet Componnet HttpSession

2013-06-18 Thread ramrubio
It looks like Camel caches the client connection as long as URL is exactly the same. This causes multiple requests by different browser clients to use same session id. Is this expected behavior? It does not seem correct to me for two different clients to have the same session id on server simply

Servet Componnet HttpSession

2013-06-18 Thread ramrubio
I've setup a proxy using Tomcat Servlet component but when end point service receives Http request the HttpSessionId is the same for all clients when the proxy is involved. Is there a special setting that needs to be enabled for Servlet component? I noticed only Jetty component has "sessionSuppor

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-14 Thread ramrubio
Found answer to my question in documentation. Missed it. servlet component may only read stream once. Tried using streamcaching but that did not work. Do not know why. Instead copied body to string and reset it in request and that worked. Here is code in case someone runs into same issue. th

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-13 Thread ramrubio
I tried forwarding to both http-component and jetty component. For both requests the body is empty (even with the following set in url ?bridgeEndpoint=true&throwExceptionOnFailure=false&disableStreamCache=true&enableMultipartFilter=false). The error i get on my server side (Jersey) is the followi

Post Request forwarded from Camel does not contain HTTP Body

2013-03-13 Thread ramrubio
Hi, I have the following. 1) Using Camel-Servlet with dynamic routing enabled as follows: this.from("servlet:///?matchOnUriPrefix=true") .removeHeader(Exchange.HTTP_PATH) .dynamicRouter(method(CamelRoute.class, "slip")); 2) In My slip method i route the incoming

Re: Routing REST request to external URI

2013-03-13 Thread ramrubio
Ok. Found my answer. Added removeHeader to route. this.from("servlet:///?matchOnUriPrefix=true").removeHeader(Exchange.HTTP_PATH).dynamicRouter(method(CamelRoute.class, "slip")); -- View this message in context: http://camel.465427.n5.nabble.com/Routing-REST-request-to-external-URI-tp5728852p

Re: Routing REST request to external URI

2013-03-13 Thread ramrubio
Thanks for the feedback. I've run into another issue. I'm trying to route an incoming URI to a different URI but HttpProducer method appends the original URI to the new route in HttpProducer.createURL. The following is the use case: 1. Client requests http://server1:8080/public/users 2. Proxy

Re: Routing REST request to external URI

2013-03-12 Thread ramrubio
Hi, Noticed that RouteBuilder is cached and called only once to construct the routes. >From documentation they mention using DynamicRouter for implementing dynamic uri routing. But it seems that even in this case it is not dynamic routing as the routes need to be predefined and the dynamic par

Re: Routing REST request to external URI

2013-03-09 Thread ramrubio
I want to setup camel as a proxy between my client and server. My proxy server is running on tomcat. On my proxy server (camel end point) i want to perform dynamic routing to route request to appropiate service end point on a different server. I'm new to camel but did notice that it supports dyn

Routing REST request to external URI

2013-03-08 Thread ramrubio
Does Camel support routing an incoming REST request to an external RESTful service for all http operations. For example, Client Submits REST request to server A. Server A uses Camel to route to appropriate service which resides in Server B. I would like to to this for all HTTP operations (GET,