Re: Slow FTP

2015-03-18 Thread Claus Ibsen
Hi I logged a ticket about this https://issues.apache.org/jira/browse/CAMEL-8513 On Tue, Mar 17, 2015 at 11:08 AM, Claus Ibsen wrote: > Hi > > Ah I dont think we set the endpoint buffersize on the ftp client by > default. And that is also by default for writing. Currently the > FTPClient is conf

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Claus Ibsen
Hi I logged a ticket to add exchange function to the simple language https://issues.apache.org/jira/browse/CAMEL-8512 On Wed, Mar 18, 2015 at 9:00 PM, Claus Ibsen wrote: > There is a route id function > > ${routeId} > > See the functions in the table at > http://camel.apache.org/simple > > On We

Re: prevent header duplication for csv file

2015-03-18 Thread yogu13
Hi, I think the behaviour is happening due to SEDA component which you have configured as it decouples the message processing into separate threads and hence every thread ends up writing the header. try removing seda if the behavior is not needed. Regards, -Yogesh -- View this message in cont

Re: Camel Property - UTF 8 issues

2015-03-18 Thread Claus Ibsen
Hi Yeah that is a good idea Christian. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-8511 On Tue, Mar 17, 2015 at 10:22 PM, Christian Müller wrote: > We don't have a class DefaultPropertyPlaceholder in Camel... > > If you have fixed the issue, it would be good if you can rai

Re: Getting the routeId in a PollingConsumer via a custom PollingStrategy

2015-03-18 Thread Claus Ibsen
Hi You can bridge the error handler http://camel.apache.org/why-does-my-file-consumer-not-pick-up-the-file-and-how-do-i-let-the-file-consumer-use-the-camel-error-handler.html On Wed, Mar 18, 2015 at 11:55 PM, Camel Guy wrote: > Ideally, Camel error handling would work with PollingConsumers when

Re: Getting a javax.jms.JMSException: java.io.InterruptedIOException

2015-03-18 Thread yogu13
Hello, This seems very similar to defect logged with activemq which has been marked as resolved AMQ-3529 . Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Getting-a-javax-jms-JMSException-java-io-Interrupte

Rabbitmq producer silently failing for invalid rabbit exchange name

2015-03-18 Thread royster
Hi, I'm using Camel 2.14.2 and have noticed an issues when using the RabbitMQ component to publish to a RabbitMQ exchange when the endpoint url contains an invalid exchange name (in this case the RabbitMQ exchange and queues have already been set up by a separate consumer process so i'm using the '

Getting a javax.jms.JMSException: java.io.InterruptedIOException

2015-03-18 Thread anukumar004
Hi, We are using apache camel to route messages to activemq queues. These messages are synchronous and use request-reply (ExhcangePattern.InOut) with a timeout of 20 secs. The messages get created from a web application depolyed on tomcat. Everything works great most of the time but when too man

Getting the routeId in a PollingConsumer via a custom PollingStrategy

2015-03-18 Thread Camel Guy
Ideally, Camel error handling would work with PollingConsumers when the poll failed. For example, a bad password is provided to the mail component. In that case I would like to invoke an endpoint. Or, there would be an option to make the route process an empty body. Neither are possible so I have

Re: Issue with Camel Crypto Signing

2015-03-18 Thread Sag21
To resolve issue java.security.InvalidKeyException: No installed provider supports this key: sun.security.rsa.RSAPrivateCrtKeyImpl Tried with the url but that doesn't worked. Then changed the url to .to("crypto:sign://provider?privateKey=#myPrivateKey&provider=SUN") which worked up to some exte

Re: Camel exec component tokenizer in Spring XML DSL removing plus sign in arguments

2015-03-18 Thread Davis, Daniel
You are right, this worked. In experiments I had put RAW() around just the "+profile *" argument and it did not work. After wrapping the call in RAW() I now have a "contains unsafe characters, please check encoding" warning which I can work through but the code is passing a valid argument list to

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Camel Guy
Thank you -- That is helpful but actually I am converting getFromEndpoint to a string and logging that, but I can stuff most of the information into routeId. Also, since I can get to exchange via groovy, I can do anything without resorting to writing a bean, just not conveniently as a one liner in

Re: Java DSL kick-starting routes, is this possible yet?

2015-03-18 Thread mikes300
Actually Yogesh, I may have just figured out my own answer here, and I have been fighting this for months. I was operating under the assumption that I should be stopping the route. And in all my tests I always stopped the route. Figuring that if I was creating the object, i needed to take care

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Claus Ibsen
There is a route id function ${routeId} See the functions in the table at http://camel.apache.org/simple On Wed, Mar 18, 2015 at 8:48 PM, Camel Guy wrote: > Deep in the "message stack" I want to do this: > > > > .. instead of putting the "from" routeId into a property or header, which > is wha

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Camel Guy
Deep in the "message stack" I want to do this: .. instead of putting the "from" routeId into a property or header, which is what I was doing because I was ignorant of exchange.getFromRouteId. On Wed, Mar 18, 2015 at 12:30 PM, Claus Ibsen wrote: > Hi > > No what is the use-case? > > On Wed, Ma

Re: Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Claus Ibsen
Hi No what is the use-case? On Wed, Mar 18, 2015 at 8:18 PM, Camel Guy wrote: > ${exchange} doesn't seem to work > > > Thanks, > ~dg -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.man

Does the Simple language have an easy way to get the current exchange object?

2015-03-18 Thread Camel Guy
${exchange} doesn't seem to work Thanks, ~dg

Hlep Please - TransactionErroHandler/retry/DLC issues. Stuck

2015-03-18 Thread mattmadhavan
Hello, I have been having few issues with my TransactionErrorHandler. It does not seem to work as expected. More than like likely I am not configuring properly. I want to handle the retry and the DLC at the application level (Camel level) and not at the Transport level (AMQ). It looks for retry an

Re: Hlep Please - TransactionErroHandler/retry/DLC issues. Stuck

2015-03-18 Thread mattmadhavan
Hello, *Please note that I am Using JTA Transaction Manager* (Bitronix standalone) and JBoss server. Thanks Matt - Thanks Matt G. Madhavan -- View this message in context: http://camel.465427.n5.nabble.com/Hlep-Please-TransactionErroHandler-retry-DLC-issues-Stuck-tp5764363p5764366.html Sen

Re: Using Simple language in Spring XML, String.replaceAll with regex grouping throws Exception

2015-03-18 Thread Claus Ibsen
Yes it should be fixed in Camel 2.15.1 On Wed, Mar 18, 2015 at 7:30 PM, meetdevang wrote: > Hi, > > Based on the > http://camel.465427.n5.nabble.com/String-replacement-via-Spring-td5719498.html > I am sucessfully able to run a simple example of String.replaceAll > > However, when I attempt to exe

Re: Issue with Camel Crypto Signing

2015-03-18 Thread Sag21
Atlast cookbook example was working correctly today and the error which I received was somewhat misleading ;) see the different error when doing the signing part just FYI it may help somebody else. 1.If there is issue with JKS file password. java.io.IOException: Keystore was tampered with, or

Using Simple language in Spring XML, String.replaceAll with regex grouping throws Exception

2015-03-18 Thread meetdevang
Hi, Based on the http://camel.465427.n5.nabble.com/String-replacement-via-Spring-td5719498.html I am sucessfully able to run a simple example of String.replaceAll However, when I attempt to execute the route

Re: Issue with Camel Crypto Signing

2015-03-18 Thread Sag21
Atlast cookbook example was working correctly today and the error which I received was somewhat misleading ;) see the different error when doing the signing part just FYI it may help somebody else. 1.If there is issue with JKS file password. java.io.IOException: Keystore was tampered with, or pas

Re: MethodInfo evaluate expression

2015-03-18 Thread Claus Ibsen
Hi I think we fixed that in the next release, eg 2.15.1 On Wed, Mar 18, 2015 at 5:00 PM, richardgroote wrote: > Hello, > > We're trying to split the body at a specific position with the below > statement. > > from("direct:abc").setHeader("tmp", > constant("(?<=\\G.{3})")).setBody(simple("${body.

MethodInfo evaluate expression

2015-03-18 Thread richardgroote
Hello, We're trying to split the body at a specific position with the below statement. from("direct:abc").setHeader("tmp", constant("(?<=\\G.{3})")).setBody(simple("${body.split(${header.tmp})}")); The above does not work because the regular expression contains ')'. Within the MethodInfo#evaluat

prevent header duplication for csv file

2015-03-18 Thread chaituu
headers are getting duplicated for every request.I needed to append values to the existing file with header should display once at the top. used @CsvRecord(separator = ",", crlf = "UNIX",generateHeaderColumns=true) for csv component. http://camel.apache.org/schema/spring";>

Re: Issue with Camel Crypto Signing

2015-03-18 Thread Colm O hEigeartaigh
The likely scenario is that your keystore cannot be found on the classpath. Does the Camel crypto component work with the " http://springcryptoutils.com/schema/crypt"; keystore? Here is a spring config that does work, that uses the camel:KeyStoreParameters instead: https://github.com/coheigea/test

using camel metrics but need to persist metrics

2015-03-18 Thread aidatechinc
Hello, I am using the camel metrics, but we have a need to persist the metrics in the database? I was thinking of creating my own component but thought maybe there is a better way to customization? -- View this message in context: http://camel.465427.n5.nabble.com/using-camel-metrics-but-need

Camel - CDI and Servlet Context Implementation

2015-03-18 Thread Naveen Subramanian
Hi, I have implemented Camel with Servlet implementation using ServletContext. I wish to implement CDI as well (which needs CdiCamelConext). I am unable to find a way to implement both. Please suggest. My web.xml routeBuilder-routes packagescan:com.example.api.routes CamelContextLifecycle

Re: Camel ActiveMQ In/OUT endpoint creates additional consumers on response queue which are more than maxConcurrentConsumers

2015-03-18 Thread agentalpha
Thank you for the quick reply Claus. I have one more question regarding my issues. Trying to dig some more in the camel activemq in/out messaging behaviour, here are some more results that I needed help to understand. I tried using the route the I have given above using two karaf instances (kind

Re: Issue with Camel Crypto Signing

2015-03-18 Thread cgiera
Try to debug the crypto component and see if the jks file is referenced correctly. kind regards, Christoph -- View this message in context: http://camel.465427.n5.nabble.com/Issue-with-Camel-Crypto-Signing-tp5764289p5764343.html Sent from the Camel - Users mailing list archive at Nabble.com.

Message filter on Camel nabble

2015-03-18 Thread Gnanaguru S
Can we write a poller, on a regular interval which keeps looking for junk posts ? Or a message filter which doesn't allow these useless posts ? Am sure a set of apache projects can make these forums more intelligent. Its very annoying and polluting. Cheers Guru @tallguru -- View this messag

Rép. : Re: Camel-ftp timeout

2015-03-18 Thread Thierry RABUEL
Hello, To be more precise, by default the URI parameter "passiveMode" is "false", so, the default mode is "Active mode". Then, when working in "firewalled" environment, it can help to set passiveMode=true Regards, Thierry >>> De : François LIOT À :"users@camel.apache.org" , "morgan.haut...@