Re: Is onFinally() compulsory after doCatch()?

2013-07-02 Thread Tarun Kumar
Thanks Claus. This is not mentioned in http://camel.apache.org/try-catch-finally.html. I think it will be great if this can be added to that page. It will really help beginners like me. On Tue, Jul 2, 2013 at 11:46 PM, Claus Ibsen wrote: > The end() marks when doCatch ends. So all the stuff in

Re: Choice sendTo and overwriting exchange body

2013-07-02 Thread David MacDonald
Hi Willem, I made my own ExpressionAdapter which is effectively a copy paste of ExpressionBuilder.toExpression that accepts an additional boolean for whether to (shallow) copy the exchange, i.e. Exchange toExchange = replaceExchange ? exchange : exchange.copy(); I'll raise a JIRA/code sample it

Re: Bug in org.apache.camel.main.Main#doStop() ?

2013-07-02 Thread Willem jiang
Hi, I just had a quick look of the code and confirmed it's a bug. I will commit a quick fix for it shortly. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot

Re: Chunking issue with http producer

2013-07-02 Thread Willem jiang
If you are using http client 3, it will clean up the input stream when you close the connection. You can find more information by checking the the comments in the doExtractResponseBodyAsStream. That is why we need to cache the input stream as it will be used in the other part of camel route.

Re: Choice sendTo and overwriting exchange body

2013-07-02 Thread Willem jiang
Maybe we can add an option in sendTo DSL, to let it restore the original Exchange if the option is enabled. Please feel free to fill a JIRA for it, if you like you can share us with the solution you have. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesou

Weblogic JMS Security Issues - A possible resolution

2013-07-02 Thread David MacDonald
Hello all, I've been attempting to use Camel/Spring JMS with Weblogic Server (10.3.6) JMS destinations and it works just fine without secure destinations, but using secure destinations results in the exception: /weblogic.jms.common.JMSSecurityException: Access denied to resource: type=, applicatio

Re: Choice sendTo and overwriting exchange body

2013-07-02 Thread David MacDonald
Hi Willem, I guessed this much. Oracle Service Bus has a service call feature out which could do callouts to internal routes without affecting the incoming message which was quite useful. I might see if I can come up with a reusable Expression that does something similar. Cheers, David -- View

Sending object to a Dynamic Route

2013-07-02 Thread Singh, Surya Prakash
Hi, How do I send an Object to a cxf route inside a Dynamic route, For ex: public String route(Exchange exchange { if (requestStatus instanceof RequestPending) { return "cxf://"; // Need to send an object to this cxf route. } } Outside of an dynamic route

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-02 Thread Christian Müller
Sure, this will help to digging into the issue. Best, Christian Sent from a mobile device Am 02.07.2013 20:19 schrieb "ajaysam" : > Can i send you my maven projects ? > > you can take a look at it high level and see if i m really missing > something basic > > > > On Mon, Jul 1, 2013 at 4:00 PM,

Re: Camel CXFRS endpoint unable to produce JSON

2013-07-02 Thread ajaysam
Can i send you my maven projects ? you can take a look at it high level and see if i m really missing something basic On Mon, Jul 1, 2013 at 4:00 PM, Sergey Beryozkin-3 [via Camel] < ml-node+s465427n5735057...@n5.nabble.com> wrote: > This is bizarre...Can you please double check the custom cod

Re: Is onFinally() compulsory after doCatch()?

2013-07-02 Thread Claus Ibsen
The end() marks when doCatch ends. So all the stuff in between is inside the doCatch. On Tue, Jul 2, 2013 at 12:36 PM, Tarun Kumar wrote: > Above link doesn't answer my second ques. Could you please help? > > > On Tue, Jul 2, 2013 at 12:41 PM, Christian Müller < > christian.muel...@gmail.com> w

Chunking issue with http producer

2013-07-02 Thread Bernard Ligny
I've got a back-end web service returning large **chunked** data. I have defined a Camel route with a proxy to this web service. I do not want Camel to buffer the entire back-end response, and then return it as a whole to the client. Instead, i would like to preserve the original streaming (mainly

Re: Cannot get filter() to work with "mandatoryBodyAs"

2013-07-02 Thread Chris Wolf
Christian - this was a "user error" on my part and I forgot that I could/should just overwrite and replace the "in" body of the exchange, in which case, I didn't need to filter out the no-longer-needed upstream message body. Thanks, Chris On Tue, Jun 11, 2013 at 11:19 AM, Christian Müller wrot

Re: Problem with DefaultCamelContext EndpointRegistry

2013-07-02 Thread Chris Wolf
Claus, Thanks, but the fact that attempting to add another instance of the same Endpoint type results in the name getting and instance number appended means that some consideration must have been given to accommodating multiple instances of the same Endpoint in the registry, right? In any case, I

Re: Why is the file component parameter, "consumer.regexPattern" not recognized?

2013-07-02 Thread Chris Wolf
Bilgin, Thanks for that - I was always assuming "file2" meant additionally added. I ended up using include=, as suggested in file2.html. Thanks, Chris On Wed, Jun 26, 2013 at 7:40 PM, Bilgin Ibryam wrote: > Hi Chris, > > are you using Camel 1.x? > As it says in the documentation, for Camel 2.

FileAsyncStressReadLockLockFileTest and maxMessagePerPoll

2013-07-02 Thread ltsallas
Can you explain a little bit more this comment in org.apache.camel.component.file.stress.FileAsyncStressReadLockLockFileTest? // leverage the fact that we can limit to max 50 files per poll // this will result in polling again and potentially picking up files

Re: Entity Manager is null

2013-07-02 Thread Willem jiang
Which version of Spring are you using? How did you use PersistenceContext? Maybe the class that you want to inject the EntityManager is not managed by Spring. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://wi

Re: Bug in org.apache.camel.main.Main#doStop() ?

2013-07-02 Thread Sven Bauhan
I opened a bug report: https://issues.apache.org/jira/browse/CAMEL-6504 On 06/28/13 12:10, Christian Müller wrote: I cannot look into the code yet, but I think this should be fixed. Feel free to create a JIRA. Best, Christian Sent from a mobile device Am 28.06.2013 10:54 schrieb "Sven Bauhan"

logging to different (dynamic) appenders

2013-07-02 Thread OrackBahama
Hi, I would like to define the name of a logger in a camel header variable. Unfortunately this doesn't seem to work. Example: .from(...) .log( LoggingLevel.INFO, "mylogger", "MyMessage ) .to(...) is working as expected, whereas .from(...) .setHeader( "logger", constant("mylogger")) .log(

Re: Camel in Master/Slave ActiveMQ config

2013-07-02 Thread deepak_a
All fyi - after some testing I went ahead with the approach suggested below http://camel.465427.n5.nabble.com/How-to-make-your-camel-routes-highly-available-when-only-one-may-be-active-at-a-time-td4984581.html#a4988271 http://www.liquid-reality.de/display/liquid/2011/11/11/Hot+Standby+failover+

Re: Camel routes and threads

2013-07-02 Thread vkarkhanis
Hello Claus, We tried using , but it did not work either.. Any suggestions? Thank you Regards Vaibhav A. Karkhanis -- View this message in context: http://camel.465427.n5.nabble.com/Camel-routes-and-threads-tp5734326p5735077.html Sent from the Camel - Users mailing list archive at Nabble.com

Entity Manager is null

2013-07-02 Thread abhi
Hi All, I am facing issue with EntityManager being null when I access it from my Java Code. Below is my camel-context in which I am defining Entity MAnager. jdbc:sqlserver://10.10.10.11:14

Re: Is onFinally() compulsory after doCatch()?

2013-07-02 Thread Tarun Kumar
Above link doesn't answer my second ques. Could you please help? On Tue, Jul 2, 2013 at 12:41 PM, Christian Müller < christian.muel...@gmail.com> wrote: > Check out the link I already sent to you [1]. > > [1] http://camel.apache.org/try-catch-finally.html > > Best, > Christian >

Re: Is onFinally() compulsory after doCatch()?

2013-07-02 Thread Christian Müller
Check out the link I already sent to you [1]. [1] http://camel.apache.org/try-catch-finally.html Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://w