Using jetty component for http producer : Weird behavior

2013-05-28 Thread anand_tech
Hi, I have a route like this in Java DSL from(servlet://abc/?matchOnUriPrefix=true) .process(new Processor() { @Override public void process(Exchange arg0) throws Exception

netty open close

2013-05-28 Thread kiranreddykasa
Hi According to our use case we have built a route like this. from(jms).to(tcp netty).to(processor).to(tcp netty ) .to(processor).to(tcp netty ) Here all the tcp stations are same. Is it possible to make netty to use new connection at each tcp endpoint for every requset?? Because

Re: netty open close

2013-05-28 Thread Claus Ibsen
Hi Try with disconnect=true as documented at http://camel.apache.org/netty On Tue, May 28, 2013 at 8:03 AM, kiranreddykasa kirankuma...@fss.co.in wrote: Hi According to our use case we have built a route like this. from(jms).to(tcp netty).to(processor).to(tcp netty ) .to(processor).to(tcp

Re: Using jetty component for http producer : Weird behavior

2013-05-28 Thread anand_tech
Oh, i should have mentioned that too. I have already tried it with jetty:https://maps.google -- View this message in context: http://camel.465427.n5.nabble.com/Using-jetty-component-for-http-producer-Weird-behavior-tp5733303p5733307.html Sent from the Camel - Users mailing list archive at

Re: netty open close

2013-05-28 Thread kiranreddykasa
Ya i tried that. But the problem is here all the tcp stations are same (Same Ip and port). So after disconnecting it's not trying to connect again. - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/netty-open-close-tp5733304p5733308.html Sent

Re: netty open close

2013-05-28 Thread Claus Ibsen
You can just use Camels error handler to retry On Tue, May 28, 2013 at 8:30 AM, kiranreddykasa kirankuma...@fss.co.in wrote: Ya i tried that. But the problem is here all the tcp stations are same (Same Ip and port). So after disconnecting it's not trying to connect again. -

Re: Using jetty component for http producer : Weird behavior

2013-05-28 Thread anand_tech
Could it be that i haven't mentioned the port explicitly in the endpoint ?? jetty://https://maps.googleapis.com{: is port needed here ?}/ -- View this message in context: http://camel.465427.n5.nabble.com/Using-jetty-component-for-http-producer-Weird-behavior-tp5733303p5733309.html Sent

Re: CamelOne

2013-05-28 Thread Achim Nierbeck
While talking about it, how about a Camel One in Europe :D Cheers, Achim 2013/5/28 Claus Ibsen claus.ib...@gmail.com I will be at the reception as well on the 9th. I fly in on the 8th in the evening. On Tue, May 28, 2013 at 7:03 AM, Robert Davies rajdav...@gmail.com wrote: Looking

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

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

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

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 kirankuma...@fss.co.in 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:

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: 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 anand29...@gmail.com wrote: i tried putting port also explicitly, but no luck .. Any pointers here ? -- View this message in context:

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 cn.oke...@gmail.com 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

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: 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:

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 claus.ib...@gmail.com wrote: Ad 1) See this FAQ

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 kirankuma...@fss.co.in wrote: camel : 2.10.4 netty : netty-3.5.11.Final - Regards kiran Reddy -- View this message in context:

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 agrawal.taru...@gmail.com wrote: Hi Claus, Thanks for the

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

Re: netty open close

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

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: 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:

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

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ý martin.stibor...@gmail.com wrote:

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

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

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: 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 claus.ib...@gmail.com wrote: Hi Thanks for sharing your solution. On Tue, May 28, 2013 at 9:30 AM, Okello Nelson cn.oke...@gmail.com wrote: My Solution: == Guys, I managed to sort out my issue in the following

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 claus.ib...@gmail.com 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

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é j...@nanthrax.net 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:

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 method ref=beanName method=methodName / and method bean=beanName method=methodName / Thanks, Alan -- View this message in context:

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;

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);

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 route from uri=activemq:topic:OrdersTopic/ filter method bean=myBean method=isGoldCustomer/

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 a...@alanfoster.me 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

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 Babak Vahdat
Am 28.05.13 15:57 schrieb AlanFoster unter a...@alanfoster.me: 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

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

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 --

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://ipaddress-not-existing:8080/context??bridgeEndpoint=truehttpClient.connectionManagerTimeout=1) From this I expected it to timeout immediately.

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 register.kal...@gmail.com wrote: Hello, I have the code working with httpClient.soTimeout in the following way: from(servlet:///test)

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: 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

New Line in simple

2013-05-28 Thread Cristiano Costantini
Hi All, if I have a new line in a Simple expression like the following when simple${header.myHeader} in 'aLongValueOne,aLongValueTo,aLongValueThree,aLongValueFour' /simple to uri=bean:myBean / /when I get a org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: Unexpected token at

Re: New Line in simple

2013-05-28 Thread Babak Vahdat
Am 28.05.13 22:22 schrieb Cristiano Costantini unter cristiano.costant...@gmail.com: Hi All, if I have a new line in a Simple expression like the following when simple${header.myHeader} in 'aLongValueOne,aLongValueTo,aLongValueThree,aLongValueFour' /simple to uri=bean:myBean / /when I get a

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

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 -

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: language language=e4x

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 Camel

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:

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 route id=gigaspacesInterface shutdownRunningTask=CompleteCurrentTaskOnly autoStartup=true from

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

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

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 willem.ji...@gmail.com From the

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: 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: 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,