RE: MIME-Mutipart DataFormat streaming?

2016-10-25 Thread Siano, Stephan
Hi Tim, The MIME-Multipart DataFormat uses javamail as the underlying technology. The DataFormat is using streaming as far as the DataFormat is concerned, but I fear that javamail as such keeps a lot of stuff in memory so there is very likely no full streaming with that component available.

Re: OnException across camelcontext not called when using direct-vm

2016-10-25 Thread Quinn Stevenson
I see there isn’t any exception handling in context2, but the default error handler is still there - have you tried setting the error handler on the context to “No Error Handler”? (http://camel.apache.org/error-handler.html ) > On Oct 25, 2016, at

Re: OnException across camelcontext not called when using direct-vm

2016-10-25 Thread Santhosh
There is no exception handling in route2, it just throws the exception. I see exception in the log, thrown by route2. But context1 never get those exception. If I use nmr route, then everything works fine. Thanks Santhosh -- View this message in context:

Re: Trouble accessing Response body content from RESTful call

2016-10-25 Thread Doug Douglass
Again, stream caching will resolve this, but, as you said earlier, you get an exception because stream caching changes the object in the message payload. Apparently there's no converter from InputStreamCache to javax.ws.rs.core.Response, which is a bit surprising as this seems a common use case.

RE: Trouble accessing Response body content from RESTful call

2016-10-25 Thread Steve Huston
I'm having trouble accessing the Response... in the debugger I stopped it and show the Response entity member as: entity HttpURLConnection$HttpInputStream (id=73) If I try to touch it it throws an exception that the stream is closed. On return from the web service call, I have these

Re: Camel Transactions query

2016-10-25 Thread fabryprog
Hello, to manage sql transaction's query you must use 1. camel sql component (http://camel.apache.org/sql-component.html) 2. transactional client (http://camel.apache.org/transactional-client.html) 3. mark your route "" N.B. if you invoke more nested routes without right transaction manage, you

Re: OnException across camelcontext not called when using direct-vm

2016-10-25 Thread Quinn Stevenson
Have you tried disabling error handling on context2? > On Oct 25, 2016, at 12:37 PM, Santhosh wrote: > > I have multiple context, and I use direct-vm to call route in another > context. If there any exception, direct-vm is not passing that exception > correctly to the

Re: Trouble accessing Response body content from RESTful call

2016-10-25 Thread Aravind Rajasekharan Pillai
Hi I don't think you can do a direct conversion to string I think u need to read it as a buffered input stream and convert to string. Can you try it that way Regards Aravind > On Oct 25, 2016, at 4:41 PM, Steve Huston wrote: > > Thank you for replying, Aravind! > >

RE: Trouble accessing Response body content from RESTful call

2016-10-25 Thread Steve Huston
Thank you for replying, Aravind! Also interesting - I had a LoggingFeature added to the JAXRSClientFactoryBean with which I set up the web service. I removed that (and removed the stream cache enabling to get back to starting point). With that, I can get a Response into my handler after

RE: Trouble accessing Response body content from RESTful call

2016-10-25 Thread Steve Huston
Interesting... I turned on stream caching (thank you, Doug!) and there are two differences: - I can find the text from the response body that I was expecting, but only if I remove the first parameter to the handler method and just accept Exchange. If I leave it as was,... - I get an exception

OnException across camelcontext not called when using direct-vm

2016-10-25 Thread Santhosh
I have multiple context, and I use direct-vm to call route in another context. If there any exception, direct-vm is not passing that exception correctly to the parent/source route. If I use nmr, then source route gets the exception and onException is getting called correctly. Here in this example

Camel-ahc-ws netty runtime problems

2016-10-25 Thread Ingram, Stuart
Using the following dependencies compile('org.apache.camel:camel-jackson:2.18.0') compile('org.apache.camel:camel-metrics:2.18.0') compile('org.apache.camel:camel-spring-boot-starter:2.18.0') compile('org.apache.camel:camel-spring-redis:2.18.0')

AsyncResponse not working with CXFRS + JAX-RS

2016-10-25 Thread prabhuj
I am using camel-cxfrs with a jaxrs resource class as below, @Path("/") public interface TestResource { @POST @Produces("application/json") @Consumes("application/json") @Path("/capabilities") public void processCardCapabilityRequest(@Suspended

Re: CamelBlueprintTestSupport errors out when the blueprint has a custom threadpool

2016-10-25 Thread rw83
I figured it out finally. The way I did was I created a thread pool executor and added it as a service. ThreadPoolBuilder builder = new ThreadPoolBuilder(context); ExecutorService myPool = builder.build("threadPoolExecutor");

Camel Hystrix behaviour when circuit is open

2016-10-25 Thread James Netherton
Hi all, I've been experimenting with camel-hystrix and wanted to check what the expected (or correct) behaviour should be when the Hystrix circuit is open. Looking at HystrixProcessorCommand.getFallback(), the fallback command is only ever run if a prior exception was encountered. However, when

Purge messages from AMQ queue

2016-10-25 Thread dpravin
Hi All, I have a requirement to purge messages from a queue programmatically from a camel route. Appreciate if anyone could share some approach to handle this requirement. Thanks, P -- View this message in context:

Re: Salesforce Subscription to topic not working over Proxy

2016-10-25 Thread Rajesh734
Claus Ibsen-2, I am having exact same issue. I am able to connect via HTTP proxy and execute Salesforce query, however Streaming API doesn't work over HTTP Proxy and I am getting 403::Unknown Client error. Please let me know if you have a fix for this. Thanks, Rajesh -- View this message in

Re: Salesforce Subscription to topic not working over Proxy

2016-10-25 Thread Rajesh734
I am having the exact same issue. My query works good, however Streaming API doesn't work over HTTP Proxy and I am getting 403::Unknown Client error. Were you able to resolve this issue? If so could you please let me know what you did to fix this issue. Thanks, Rajesh -- View this message in

Re: Trouble accessing Response body content from RESTful call

2016-10-25 Thread aravind r
Hi Steve, Are u logging the Message body somewhere before consuming (say Camel logger in between),that could also lead to input stream consumption. Regards, Aravind On Tue, Oct 25, 2016 at 1:15 PM, Doug Douglass wrote: > I can't say where the response body is being

Re: Trouble accessing Response body content from RESTful call

2016-10-25 Thread Doug Douglass
I can't say where the response body is being consumed, but try enabling stream caching[1] and see what you get. Doug [1] http://camel.apache.org/stream-caching.html On Tue, Oct 25, 2016 at 9:31 AM, Steve Huston wrote: > I am developing a route that calls a web service;

Trouble accessing Response body content from RESTful call

2016-10-25 Thread Steve Huston
I am developing a route that calls a web service; said web service returns a JSON string (Not always the same type represented). I have this in a route as: from(myqueue) .bean(SetupCxfRequest.class) // This sets up parameters for REST API call

Re: Authentication Header Missing from CXF Endpoint

2016-10-25 Thread Brad Johnson
You are right about the Processor sent to the producer template. Just hadn't used it that way before. I'll have to look at this a bit further but see one place you can simplify your testing a bit. Instead of: final CamelContext camelContext = producerTemplate.getCamelContext(); final

Camel Hystrix behaviour when circuit is open

2016-10-25 Thread jamesnetherton
Hi all, I've been experimenting with camel-hystrix and wanted to check what the expected (or correct) behaviour should be when the Hystrix circuit is open. Looking at HystrixProcessorCommand.getFallback(), the fallback command is only ever run if a prior exception was encountered. However, when

Re: IDE for newer Camel versions using Camel Spring Boot

2016-10-25 Thread James Green
Nice video indeed, however on asking to edit an endpoint in IDEA 2016.2.5 I get "No Facet of type [interface org.jboss.forge.addon.projects.facets.WebResourcesFacet] is installed." Not sure I know where this needs to be reported as a bug - is it a JBoss thing, a fabic8 thing, or a Camel thing?

Re: Authentication Header Missing from CXF Endpoint

2016-10-25 Thread aravind r
Hi @Brad - I don't think it is the Processor that is sent to the Endpoint but it is the Exchange itself. I tried the other approach you suggested and below is the code that am using String uuid = UUID.randomUUID().toString().replace("-", ""); System.out.println("uuid = " + uuid);

MIME-Mutipart DataFormat streaming?

2016-10-25 Thread Tim Dudgeon
I was looking at the MIME-Mutipart DataFormat and it looks very useful: https://camel.apache.org/mime-multipart.html But I was not sure if it fully streams the data for the body and attachments, or whether it holds the content in memory (this is for both marshalling and unmarshalling).

Re: Camel Online-Docs

2016-10-25 Thread Andrea Cosentino
Currently we maintain the docs directly in github. https://github.com/apache/camel/blob/master/components/camel-mail/src/main/docs/mail-component.adoc But the documentation is only for the current codebase and in future it will be released for each new version of Camel. I guess cc and bcc

Camel Users Registration

2016-10-25 Thread Arthanarisamy Annamalai
Hi, Please allow me to subscribe. Thanks, Arthanarisamy -- *Disclaimer* This e-mail and the attachments thereto contain confidential information and are intended only for the individual to whom it is addressed. If you are not the intended addressee, then you are hereby notified that

Camel Online-Docs

2016-10-25 Thread Stephan Burkard
Hi On the page https://camel.apache.org/mail.html is probably a version note missing. The carbon copy parameter is mentioned as "cc" (lowercase). With Camel 2.12 this does not work, the parameter is not recognized. Instead I had to use "CC" (uppercase). I have not tried it, but perhaps this is