Re: Problem with httpClient.connectionManagerTimeout on Camel 2.10.4

2013-05-28 Thread Babak Vahdat
Yeah right, indeed what Claus has proposed is much easier to implement and also elegant thanks to the "route-advice" facility in Camel. Indeed on Page 182 of the Book there's an exact matching example for your use case: @Test public void testSimulateErrorUsingInterceptors() throws Exception {

Re: Exception doesn't get cauhgt in the route

2013-05-28 Thread Claus Ibsen
should be after . And the option inheritErrorHandler="false" should be removed. On Wed, May 29, 2013 at 1:13 AM, salemi wrote: > Hi All, > > we throw an exception in the gsInterface bean but the exception never get > caught by the onException clause in the route below. > > What am I doing wrong

Re: evaluating bean expressions in custom language

2013-05-28 Thread Claus Ibsen
You can build you own Camel language component. On Tue, May 28, 2013 at 11:41 PM, javamonkey79 wrote: > Is there a standard way to evaluate bean expressions\OGNL in custom > languages? > > For example: > > I have a custom language expression like this: > >

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-28 Thread Claus Ibsen
Hi Can you search the Camel mailing lists. I kinda recall a bit about that Eclipse persistence link error for another user. [Exception [EclipseLink-50007] (Eclipse Persistence Services - Maybe you can find those mail threads and see what the answer was. On Tue, May 28, 2013 at 11:39 PM, Kulbhush

Re: Problem with httpClient.connectionManagerTimeout on Camel 2.10.4

2013-05-28 Thread Claus Ibsen
For testing purpose you can take a look at http://camel.apache.org/testing And for example use advice with to intercept and skip sending to http endpoints, where you can detour and throw your own exceptions to simulate the erorr http://camel.apache.org/advicewith.html If you have a copy of Camel

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread AlanFoster
Thanks for the great answer Babak :) -- View this message in context: http://camel.465427.n5.nabble.com/Difference-between-method-attribute-bean-and-ref-tp5733348p5733371.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NullPointerException throws from CXF Component (DataFormat is CXF_MESSAGE) when handle fault response

2013-05-28 Thread liugang594 Liu
It's easy to reproduce this problem: use CXF component with CXF_MESSAGE dataFormat to call any service, and the response of this service is a fault, then you can see this exception. My camel version is 2.10.4, and cxf version is 2.7.5 2013/5/29 Willem jiang > From the stack trace I can tell t

Re: NullPointerException throws from CXF Component (DataFormat is CXF_MESSAGE) when handle fault response

2013-05-28 Thread Willem jiang
From the stack trace I can tell there are something when camel-cxf wants to read the content from CXF message. Can you show me the whole Camel route and your camel version? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com B

NullPointerException throws from CXF Component (DataFormat is CXF_MESSAGE) when handle fault response

2013-05-28 Thread liugang594 Liu
If the required service with ws-addressing enable, and from CXF component (dataFormat type is CXF_MESSAGE) sent a request msg without ws-addressing information inside. then got a NullPointerException, the error msg is: Exception in thread "default-workqueue-1" java.lang.NullPointerException at org

Exception doesn't get cauhgt in the route

2013-05-28 Thread salemi
Hi All, we throw an exception in the gsInterface bean but the exception never get caught by the onException clause in the route below. What am I doing wrong here? Thanks, Ali org.springframework.dao.DataAccessExcep

Re: Global definition for HttpClient.XXX options

2013-05-28 Thread Babak Vahdat
Hi One possible way would be to make use of a PropertyPlaceholder e.g. {{my-global-httpClient-property-placeholder}} where you configure once and reuse all over the places where appropriate: http://camel.apache.org/using-propertyplaceholder.html Babak -- View this message in context: http://

Re: CamelOne

2013-05-28 Thread Christian Posta
Looking forward to it! Will be there Sunday evening for beer... On Tue, May 28, 2013 at 2:15 PM, Christian Müller < christian.muel...@gmail.com> wrote: > Cool, I look forward to Sunday evening! > > Christian > > Christian Müller > - > > Software Integration Specialist > > Apache

Re: Problem with httpClient.connectionManagerTimeout on Camel 2.10.4

2013-05-28 Thread Babak Vahdat
Hi The httpClient.connectionManagerTimeout option doesn't bring the effect you're expecting, see the Javadoc for it's semantics: http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/params/HttpClientParams.html If an IP-Address can't be resolved you will immediately end up w

evaluating bean expressions in custom language

2013-05-28 Thread javamonkey79
Is there a standard way to evaluate bean expressions\OGNL in custom languages? For example: I have a custom language expression like this: ${someString}.indexOf('"'+message['

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-28 Thread Kulbhushan Azad
Thanks Frank and Preben for your inputs yes i have been using the cat tool of 12c to resolve the conflicting classes , i do not see any conflicting classes in cat tool now i am getting below error not sure how to go about it [Exception [EclipseLink-50007] (Eclipse Persistence Services - 2.3.2.v2

Re: CamelOne

2013-05-28 Thread Christian Müller
Cool, I look forward to Sunday evening! Christian Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/members.html https:/

Re: New Line in

2013-05-28 Thread Babak Vahdat
Am 28.05.13 22:22 schrieb "Cristiano Costantini" unter : >Hi All, > >if I have a new line in a Simple expression like the following > > >${header.myHeader} in >'aLongValueOne,aLongValueTo,aLongValueThree,aLongValueFour' > > > > >I get a >org.apache.camel.language.simple.types.SimpleIllegalSyntax

New Line in

2013-05-28 Thread Cristiano Costantini
Hi All, if I have a new line in a Simple expression like the following ${header.myHeader} in 'aLongValueOne,aLongValueTo,aLongValueThree,aLongValueFour' I get a org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: Unexpected token at location... The route works fine if I wr

Re: netty open close

2013-05-28 Thread kiranreddykasa
Without encoders and decoders of netty it is working as expected. Any alternate for the encoders and decoders?? - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/netty-open-close-tp5733304p5733372.html Sent from the Camel - Users mailing list archive

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-28 Thread Preben.Asmussen
Hi I'm running several camel war's on weblogic 10.3.5 without any problems as long as you remember to use weblogic.xml deployment descriptor to load webapp provided classes first. Weblogic provides an build in weblogic classloader analysis tool

Re: can httpClient.soTimeout be set through Header params ?

2013-05-28 Thread Claus Ibsen
Hi You cannot set this with headers. See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Tue, May 28, 2013 at 5:19 PM, kalyan wrote: > Hello, > > I have the code working with "httpClient.soTimeout" in the following way: > > from("servlet:///test") >.process(new MyPro

Problem with httpClient.connectionManagerTimeout on Camel 2.10.4

2013-05-28 Thread kalyan
Hello, I have tried "httpClient.connectionManagerTimeout" in the following way. from("servlet:///test") .process(new MyProcessor()) .to("http://:8080/context??bridgeEndpoint=true&httpClient.connectionManagerTimeout=1") >From this I expected it to timeout immediately. However, Camel se

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, Kalyan -- Vie

RE: SSL : Server Certs and Client certificate passthrough

2013-05-28 Thread Arty
I guess what I'm trying to figure out is how to manually attach a SSL Cert to an exchange, based on data within the message. -- View this message in context: http://camel.465427.n5.nabble.com/SSL-Server-Certs-and-Client-certificate-passthrough-tp5732925p5733366.html Sent from the Camel - Users

can httpClient.soTimeout be set through Header params ?

2013-05-28 Thread kalyan
Hello, I have the code working with "httpClient.soTimeout" in the following way: from("servlet:///test") .process(new MyProcessor()) .to("http://localhost:8080/context??bridgeEndpoint=true&httpClient.soTimeout=1";) However, when I try to set "httpClient.soTimeout" in the following way

Re: netty open close

2013-05-28 Thread kiranreddykasa
Hi as per our observation we are getting ClosedChannelException when the remote machine is restarted. It's not trying to reconnect. - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/netty-open-close-tp5733304p5733364.html Sent from the Camel - Users

Re: The dreaded: Unable to locate Spring NamespaceHandler for XML schema

2013-05-28 Thread wpeirone
Hi Claus, Related with this, I´m having same problem with spring.handlers and spring.schemas. I´m using org.apache.camel.spring;version="2.8.0.fuse-07-16" on equinox from eclipse. in xml I´m using xmlns:camel="http://camel.apache.org/schema/spring"; http://camel.apache.org/schema/spring http://ca

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread Babak Vahdat
Am 28.05.13 15:57 schrieb "AlanFoster" unter : >Hi, > >I wonder if there a way to provide any sort of deprecated metadata within >the generated Camel xsd? For instance this metadata would be great for >tooling, as I would really like to highlight elements/attributes as being >deprecated within c

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread AlanFoster
Hi, I wonder if there a way to provide any sort of deprecated metadata within the generated Camel xsd? For instance this metadata would be great for tooling, as I would really like to highlight elements/attributes as being deprecated within camel routes when inside an IDE; Having this information

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread Claus Ibsen
Hi Yeah fell free to update the docs On Tue, May 28, 2013 at 3:26 PM, AlanFoster wrote: > Thanks for your reply Claus. > > Will the documentation for http://camel.apache.org/bean-language.html need > to be updated to use the 'ref' attribute maybe? > > This is from the documentation page above >

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread AlanFoster
Thanks for your reply Claus. Will the documentation for http://camel.apache.org/bean-language.html need to be updated to use the 'ref' attribute maybe? This is from the documentation page above Shall I update the page and add a note for this, or is there an existing dedica

how does force stop a ftp consumer immediately?

2013-05-28 Thread kknd2015
I have a ftp consumer to pull some huge files by a specified pattern. I need to stop it without stoping the camel context and jvm. I have tryied the stoproute with abort option, also set the ShutdownStrategy to 5 seconds. camelContext.getShutdownStrategy().setTimeout(5); camelContext.getShut

Re: Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread Claus Ibsen
Hi Its the same. bean was the old attribute, which has been deprecated. You should favor using ref @XmlRootElement(name = "method") @XmlAccessorType(XmlAccessType.FIELD) public class MethodCallExpression extends ExpressionDefinition { @XmlAttribute @Deprecated private String bean;

Difference between method attribute 'bean' and 'ref'

2013-05-28 Thread AlanFoster
Hi, I was just wondering what the differences between the 'ref' and 'bean' attribute are within the method XML type. For example and Thanks, Alan -- View this message in context: http://camel.465427.n5.nabble.com/Difference-between-method-attribute-bean-and-ref-tp5733348.html Se

Re: CamelOne

2013-05-28 Thread Martin Stiborský
Yep, Camel One in Europe sounds nice to me :) On Tue, May 28, 2013 at 9:05 AM, Jean-Baptiste Onofré wrote: > Hi Christian, > > I should arrive Saturday evening or Sunday evening (I wait my flight > confirmation). > > Regards > JB > > > On 05/27/2013 09:53 PM, Christian Müller wrote: >> >> CamelOn

Re: staticResources for websocket in OSGi/blueprint environment

2013-05-28 Thread Martin Stiborský
ok thanks, I'll check it. On Tue, May 28, 2013 at 11:10 AM, Claus Ibsen wrote: > Maybe enable dynamic import on the camel-websocket component, as a workaround. > > Could be that the resource loading in camel-websocket would need to > leverage the Camel API for that which has OSGi integration. > >

Re: Exchanges Aggregation for batch loading to database

2013-05-28 Thread Okello Nelson
Any time, Claus. On Tue, May 28, 2013 at 10:38 AM, Claus Ibsen wrote: > Hi > > Thanks for sharing your solution. > > On Tue, May 28, 2013 at 9:30 AM, Okello Nelson > wrote: > > My Solution: > > == > > > > Guys, I managed to sort out my issue in the following manner: > > > > I had to co

Re: Using jetty component for http producer : Weird behavior

2013-05-28 Thread anand_tech
I think there is some issue with the internal jetty http producer classes. I changed the endpoint's name at jetty's end and gave an uri through processor using CamelHttpUri, but it still produced same behavior. Logs : [2013-05-28 11:24:18,366] org.apache.camel.processor.SendProcessor DEBUG - >>

Re: Test route with CXF endpoint

2013-05-28 Thread Aki Yoshida
your usage of requestBodyAndHeader doesn't look right. inputProducerTemplate.requestBodyAndHeader("cxf:bean:CustomersServiceConsumerEndpoint", body, mapHeaders); the first argument is supposed to be the body value, see /** * Sends the body to the default endpoint and returns the result c

Re: Communication between two processes without using external messaging systems or files

2013-05-28 Thread Robert Davies
OK - understood in which case both Christian and Charles' suggestions are best - look at http://camel.apache.org/direct.html - for the a good example of chaining routes together and SEDA - http://camel.apache.org/seda.html thanks, Rob On 28 May 2013, at 09:33, Mohammad Shadab Ali wrote: > Hi R

Re: staticResources for websocket in OSGi/blueprint environment

2013-05-28 Thread Claus Ibsen
Maybe enable dynamic import on the camel-websocket component, as a workaround. Could be that the resource loading in camel-websocket would need to leverage the Camel API for that which has OSGi integration. On Mon, May 27, 2013 at 6:41 PM, Martin Stiborský wrote: > Hi all, > I'm preparing a d

RE: Communication between two processes without using external messaging systems or files

2013-05-28 Thread Mohammad Shadab Ali
Hi Robert, With two different processes I mean two different camel routes. Regards, Shadab -Original Message- From: Robert Davies [mailto:rajdav...@gmail.com] Sent: Monday, May 27, 2013 10:28 PM To: users@camel.apache.org Subject: Re: Communication between two processes without using ext

Re: MailComponent/MailConsumer misses Mails

2013-05-28 Thread Christian Müller
I will have a look at it if I find some time later this week... Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/m

Cxf MA SSL connectivity issue

2013-05-28 Thread kiranreddykasa
Hi We are trying to connect a host system using MA SSL. Initial connection is happening properly and if we send ten transactions continiously everything is fine but when it is idle for 15 to 20 seconds we are getting ssl handshake error. handling exception: javax.net.ssl.SSLException: Received

Cxf MA SSL connectivity issue

2013-05-28 Thread kiranreddykasa
Hi We are trying to connect a host system using MA SSL. Initial connection is happening properly and if we send ten transactions continiously everything is fine but when it is idle for 15 to 20 seconds we are getting ssl handshake error. handling exception: javax.net.ssl.SSLException: Received

Re: netty open close

2013-05-28 Thread kiranreddykasa
As of now we are using these parameters , Still its not working. sync=true&lazyChannelCreation=false&producerPoolEnabled=false&disconnect=true - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/netty-open-close-tp5733304p5733326.html Sent from the Cam

Re: MailComponent/MailConsumer misses Mails

2013-05-28 Thread cgiera
Ok, i see fetchSize is also a parameter. The only way to don't lose mails in my testcase is to set fetchSize to 1. But that's not a solution, it's only a workaround. I'm sorry I couldn't find the problem by myself, I could only say it has something to do with the folder.isOpen check. After this a

Re: Dynamic Route in camel

2013-05-28 Thread Claus Ibsen
It can also call non static methods, if the bean has a default no-arg constructor. Or if you have enlisted a bean instance in the registry, and refer to the bean id of this instance instead. On Tue, May 28, 2013 at 9:47 AM, Tarun Kumar wrote: > Hi Claus, > > Thanks for the reply. Bean-integratio

Re: netty open close

2013-05-28 Thread Claus Ibsen
You can try turning producer pooling off, producerPoolEnabled=false On Tue, May 28, 2013 at 9:40 AM, kiranreddykasa wrote: > camel : 2.10.4 > > netty : netty-3.5.11.Final > > > > - > Regards > > kiran Reddy > -- > View this message in context: > http://camel.465427.n5.nabble.com/netty-open

Re: Dynamic Route in camel

2013-05-28 Thread Tarun Kumar
Hi Claus, Thanks for the reply. Bean-integration works only if method i am calling is public static. What if i want to call non-static method? On Sun, May 26, 2013 at 2:02 PM, Claus Ibsen wrote: > Ad 1) > See this FAQ > http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html > > > Ad 2) >

Re: Using jetty component for http producer : Weird behavior

2013-05-28 Thread anand_tech
Camel is 2.9.0 and jetty is 7.5.3. Jetty jars are downloaded as part of camel-jetty dependencies through maven, so i guess jetty's version should not be a problem. -- View this message in context: http://camel.465427.n5.nabble.com/Using-jetty-component-for-http-producer-Weird-behavior-tp5733303

Re: netty open close

2013-05-28 Thread kiranreddykasa
camel : 2.10.4 netty : netty-3.5.11.Final - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/netty-open-close-tp5733304p5733320.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Exchanges Aggregation for batch loading to database

2013-05-28 Thread Claus Ibsen
Hi Thanks for sharing your solution. On Tue, May 28, 2013 at 9:30 AM, Okello Nelson wrote: > My Solution: > == > > Guys, I managed to sort out my issue in the following manner: > > I had to copy my app jar into the ActiveMQ's lib directory. This was so > that ActiveMQ can have access to

Re: Using jetty component for http producer : Weird behavior

2013-05-28 Thread Claus Ibsen
What version of Camel and Jetty are you using? On Tue, May 28, 2013 at 9:34 AM, anand_tech wrote: > i tried putting port also explicitly, but no luck .. Any pointers here ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Using-jetty-component-for-http-producer-Weir

Re: Using jetty component for http producer : Weird behavior

2013-05-28 Thread anand_tech
i tried putting port also explicitly, but no luck .. Any pointers here ? -- View this message in context: http://camel.465427.n5.nabble.com/Using-jetty-component-for-http-producer-Weird-behavior-tp5733303p5733317.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: netty open close

2013-05-28 Thread Claus Ibsen
What version of Camel and Netty do you use? On Tue, May 28, 2013 at 9:10 AM, kiranreddykasa wrote: > Tried that too.But still no luck. > > > I guess its not even trying to open the connection again. > > > > - > Regards > > kiran Reddy > -- > View this message in context: > http://camel.46542

Re: Exchanges Aggregation for batch loading to database

2013-05-28 Thread Okello Nelson
My Solution: == Guys, I managed to sort out my issue in the following manner: I had to copy my app jar into the ActiveMQ's lib directory. This was so that ActiveMQ can have access to my data transfer objects. Next, I had to create a custom Aggregator (look at my previous post). In my cus

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-28 Thread Frank Ertl
Hi, try to remove the slf4j-jars from your deployment. The error states that the slf4j-classes got mixed up between two classloaders. Could be that there will be following errors of the same type. This happens when weblogic loads singleton classes at startup. I found it sometimes really painful t

Re: netty open close

2013-05-28 Thread kiranreddykasa
Tried that too.But still no luck. I guess its not even trying to open the connection again. - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/netty-open-close-tp5733304p5733313.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CamelOne

2013-05-28 Thread Jean-Baptiste Onofré
Hi Christian, I should arrive Saturday evening or Sunday evening (I wait my flight confirmation). Regards JB On 05/27/2013 09:53 PM, Christian Müller wrote: CamelOne 2013 (http://camelone.org/) is in about two weeks! Who will be there? I want to meet as many Camel user/contributors/committer