Re: Java heap space with FILE producer and larges files

2014-04-09 Thread Claus Ibsen
Hi What are you doing in Camel. It seems your issue is maybe that somehow/somewhere you force a type conversion from file - String and that is causing to load the entire file into memory. And therefor you should find that problem and fix that instead. On Tue, Apr 8, 2014 at 9:04 PM, bbk

Re: Java heap space with FILE producer and larges files

2014-04-09 Thread bbk
Hi The problem is when I do on the large files: - exchange.getIn().getBody(InputStream.class) - exchange.getIn().getBody(String.class) ... So, how can I resolve this problem? -- View this message in context:

Re: Java heap space with FILE producer and larges files

2014-04-09 Thread Claus Ibsen
On Wed, Apr 9, 2014 at 11:27 AM, bbk brendi...@hotmail.com wrote: Hi The problem is when I do on the large files: - exchange.getIn().getBody(InputStream.class) - exchange.getIn().getBody(String.class) here is your problem as you convert the payload to a String which reads in the entire

Re: How to call processor thru configuration file ?

2014-04-09 Thread Charlie Mordant
Hi, You can use inOut instead of to in order to have the output of your processor in the body of the exchange: http://camel.apache.org/request-reply.html. Hope it'll help. Regards 2014-04-07 19:20 GMT+02:00 scottmiles motgu...@gmail.com: My application needs to work as middleware where it

No Direc-vm in RouteContext

2014-04-09 Thread Max Bridgewater
Hi, I just realized that you cannot have a direct-vm in a route context.I assume that would be the same with vm. Makes completely sense since direct-vm can only exist once in the VM while routeContext can be imported in many different camel contexts. The error messages though were a bit baffling:

Re: error blocking camel-mail consumer

2014-04-09 Thread Claus Ibsen
On Tue, Apr 8, 2014 at 2:02 PM, stefan@zv-extern.fraunhofer.de wrote: Hello, You can try with mapMailMessage=false, and then use Camel's error handler if parsing the body / attachments of the mail fails. this would only prevent this special error, but perhaps there will others rise in

Re: Java heap space with FILE producer and larges files

2014-04-09 Thread bbk
Thank you for your response. But I have the same problem but somewhere and I don't find that is causing. The trace is: Error during type conversion from type: org.apache.camel.component.file.Generi cFile to the required type: java.lang.String with value GenericFile[...] due

Re: CXF jaxrs custome exception mapper with camel

2014-04-09 Thread Sergey Beryozkin
Please watch https://issues.apache.org/jira/browse/CAMEL-7357 Cheers, Sergey On 08/04/14 18:51, Sergey Beryozkin wrote: On 08/04/14 05:59, vrahul wrote: Cxf with camel always surprised me. ExceptionMapper is a basic requirement expected from the restfull server. Please let me know once you

Re: Camel with ActiveMQ

2014-04-09 Thread hekonsek
Hi Anuj, 1. Does camel need ActiveMQ broker to run or it can work without ActiveMQ also ? ActiveMQ is only one among many [1] components supported by Camel. So yes, you can run Camel without AMQ. 2. What are the possible use cases where I can use camel with ActiveMQ ? Well, actually

Is Camel affected by the OpenSSL heart bleed bug?

2014-04-09 Thread bocamel
We are using Camel (with CXF and Karaf). Does anyone know if we should be concerned with this new OpenSSL security bug? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Is-Camel-affected-by-the-OpenSSL-heart-bleed-bug-tp5750006.html Sent from the Camel - Users

Re: add SAML TOKEN to SOAP header

2014-04-09 Thread Colm O hEigeartaigh
Hi, I've fixed the NPE in WSS4J. Yes, there is an asymmetry for the SAML case between the outbound and inbound configurations. This is mainly for historical reasons, not to break backwards compatibility with older deployments. On the outbound side, the Unsigned action just creates a SAML Token

Re: Troubles to add WSS4JOutInterceptor to my cxf endpoint

2014-04-09 Thread Colm O hEigeartaigh
Hi, I've fixed the NPE in WSS4J. With WSS4J 1.6.x, you need to specify a samlPropFile value when adding a SAML Token. For example: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/test/resources/saml_sv.properties?view=markup

Re: Is Camel affected by the OpenSSL heart bleed bug?

2014-04-09 Thread Richard Kettelerij
Camel, CXF, Karaf are all written in Java and Java has its own crypto/SSL implementation. There's no dependency on OpenSSL in any of those applications/frameworks. Of course if you're running Camel/CXF/Karaf on a server that does use OpenSSL for something else (let's say you're running Camel or

inter-bundle camel routing

2014-04-09 Thread samslara
Hi, I have a question about how to route messages between OSGi bundles within the same container. If I have two bundles, B1 and B2, which have their own camel routes and I want them to send messages to each other, say from B1 to B2, what's the best practice approach on how to do this? So for

Camel with ActiveMQ

2014-04-09 Thread anujkhandelwal
Hi, I have a good understanding of ActiveMQ. I am apache exploring camel to extend the use of ActiveMQ. I was reading the basic articles and websites. Just stuck with some questions: 1. Does camel need ActiveMQ broker to run or it can work without ActiveMQ also ? 2. What are the possible use

Re: Missing detail element in SOAP fault

2014-04-09 Thread Gnanaguru S
Hi Williem, I see this issue is fixed. But I still get the faultcode like this. By the way, I am setting a header for the faultcode in my route. Please suggest. soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body soap:Fault

Re: inter-bundle camel routing

2014-04-09 Thread pradeep
Hi, Yes, you can use camel direct-vm instead of direct component and it is for synchronous behavior. For async communication you can use camel-vm component. Refer this documentation for more info: camel-VM: http://camel.apache.org/vm.html Camel-Direct-vm: https://camel.apache.org/direct-vm.html

Re: camel xpath

2014-04-09 Thread Lydie
So I still have an error: I never go to my first choice: 'enabled': choice when xpath headerName=ROUTE_CONFIGURATION_HEADER/authorizationCheck='enabled'/xpath log message= Authorization enabled / process ref=authorizationProcessor /