RE: Jsch issue with compression algorithm

2014-10-28 Thread Baweja, Keshav
HI Williem, Camel , JSch Developers I need compression to be set on the route as the remote server only offers zlib as the compression algorithm. As I mentioned below, when compression option is set on camel route, SftpOpertions does the below - // compression if

Re: How to split to files and add number to output file names (not overwrite)

2014-10-28 Thread dermoritz
Thx claus, but i read those sites already. The problem was i couldn't find any hint on adding a number or count on the files. But Stackoverflow helped: http://stackoverflow.com/questions/26593037/how-to-split-to-files-and-add-number-to-output-file-names-not-overwrite/26595652#26595652 i set the

Re: Change property in unit test

2014-10-28 Thread Charles Moulliard
Hi, Have you overrided the method as described in the doc of apache camel ( http://camel.apache.org/properties.html) ? @Override protected Properties useOverridePropertiesWithPropertiesComponent() { Properties extra = new Properties(); extra.put(destination, mock:extra);

RE: Jsch issue with compression algorithm

2014-10-28 Thread Willem Jiang
Hi  Thanks for trying that out. I just fill a JIRA[1] for it and will submit quick patch for it. [1]https://issues.apache.org/jira/browse/CAMEL-7977 Regards, Willem -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)

Re: Issue with adding wsse:security header in Apache Camel Route

2014-10-28 Thread Charles Moulliard
Hi, I suggest to have a look to this Apache Camel Unit test to see how Camel + CXF Security should be used together : https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wssecurity/camel/WSSecurityRouteTest.java

Re: Putting some Map values into a Bean

2014-10-28 Thread Charles Moulliard
Hi Jonathan, I would like to suggest that you generate the POJOS classes from the JSON response that you are getting from Marvel RESTfull Gateway using by example this online tool (http://www.jsonschema2pojo.org/). The classes generated could be next integrated with your project and used by

Re: Not all processors are listed in JMX, preventing detailed route statistics/profiling

2014-10-28 Thread Charles Moulliard
Can you debug the project and add a breakpoint in this method (protected boolean shouldRegister(Object service, Route route) {)) of this class (org.apache.camel.management.DefaultManagementLifecycleStrategy) of camel-core to see if the conditions are matched to register the mbean ? On Mon, Oct

Re: Quartz job data deletion in clustered quartz2

2014-10-28 Thread Willem Jiang
We need to do some addition work to let clustered quartz endpoint share the same camel context id. I just created a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-7947 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)

Re: Quartz job data deletion in clustered quartz2

2014-10-28 Thread Claus Ibsen
Hi You can configure the jmx management name to not include the bundle id, see details at http://camel.apache.org/camel-jmx On Tue, Oct 28, 2014 at 6:56 AM, lakshmi.prashant lakshmi.prash...@gmail.com wrote: We are setting the camel Context id in the blueprint xml and have deployed it to the

Expression Language and date:now minus/plus N days

2014-10-28 Thread geppo
Hi, I need to set a Camel route which polls files from a directory and all its subdirectories every 5 minutes: /2014/Jan/1 /2014/Jan/2 ... /2014/Oct/28 The way it is at the moment it's scanning all subdirectories from the first of January to today, which is very slow. I would like

Re: Issue with adding wsse:security header in Apache Camel Route

2014-10-28 Thread sonusmile01
Hi Charles, Thanks for your reply. I already have tried using usernametoken in camel spring xml as mentioned in the first link you shared. Also, i can see what is being done in the testUsernameToken unit test as per second link. However, I'm really confused how do i specify the cxf endpoint in

Problems configuring FileIdempotentRepository

2014-10-28 Thread Knut-Håvard Aksnes
I have had problems with a FileIdempotentRepository configured like this (spring): bean id=issuesFetched class=org.apache.camel.processor.idempotent.FileIdempotentRepository property name=fileStore value=issuesImported.dat / property

Re: can camel throttle messages based a dynamic message key?

2014-10-28 Thread Henryk Konsek
Hi Niels, I would like to throttle all queries for foo/@id=A12, foo/@id=30 and foo/@id=A10 separately. What about the content-base routing followed by the different throttler definition for each choice path? from(direct:a) .choice() .when(...) .throttle(3).to(direct:b)

Re: Expression Language and date:now minus/plus N days

2014-10-28 Thread Claus Ibsen
Hi You can use a custom filter, and implement the code using java, where you return true | false if a directory / file should be accepted or not. Then you can implement the logic in java code to use current day - 7 days. On Tue, Oct 28, 2014 at 12:33 PM, geppo geppore...@gmail.com wrote: Hi,

RE: How to act as TCP-client with Camel + Mina/Netty?

2014-10-28 Thread Urppa
Well, I did implement my own custom endpoint with Mina. camel-mina or camel-netty didn't have the capability to act as TCP-client so I had to do it myself. From: Jean-Baptiste Onofré [via Camel] [mailto:ml-node+s465427n5758111...@n5.nabble.com] Sent: 27. lokakuuta 2014 18:26 To: Riipinen Petri

Re: Consuming from an External WS given only the External WS WSDL definition

2014-10-28 Thread Henryk Konsek
Hi David, I am looking for either a java DSL example or an explanation as to how this can be done. GroovyWS [1] can be used to dynamically call WSDL-based web services. You can call it from Camel Groovy [2] component. Laters! [1] http://groovy.codehaus.org/GroovyWS [2]

SMPP component and problem with valid period (relative) and data message

2014-10-28 Thread hanusto
Hello, I have two questions for SMPP camel component: 1) how to set valid period as relative ? It can be defined in absolute time format or relative time format if you provide it as String as specified in chapter 7.1.1 in the smpp specification v3.4. in format 010R as one day:

camel-jms consumer 2.14.0 replyTo

2014-10-28 Thread sandp
Hi, I'm trying to replyto a temporary HornetQ queue for every message produced and consumed. I send a message to a *queue *with exchange pattern as InOut on a timer endpint. There is a *consumer with InOut pattern* for the queue that consumes, processes the message and sends it back to the same

Re: Problems configuring FileIdempotentRepository

2014-10-28 Thread Knut-Håvard Aksnes
I am using Camel 2.12.4 This doesn't help so I assume that the problem isn't related to the cacheSize setter: bean id=issuesFetched class=org.apache.camel.processor.idempotent.FileIdempotentRepository factory-method=fileIdempotentRepository

RE: Questions about doneFileName

2014-10-28 Thread BURN, James
Hi Thanks for that Claus. I thought it would be easy enough. Regarding my first query, is it possible to configure Camel file2/ftp to consume the .data file, leave it on the server (as performed by noop=true) but remove the .ready file ? The reason is that we have multiple consumers (other

using wireTap() to output messages into log4j logger

2014-10-28 Thread Lustig, Marc
Hi, we are using wireTap pattern to log messages into a given file. Is it possible to direct the output into a log4j logger instead? Is there any pattern or solution existing? Cheers Marc

Re: Expression Language and date:now minus/plus N days

2014-10-28 Thread geppo
Thank you, I will do that. I was hoping for something ready made :) -- View this message in context: http://camel.465427.n5.nabble.com/Expression-Language-and-date-now-minus-plus-N-days-tp5758210p5758225.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: using wireTap() to output messages into log4j logger

2014-10-28 Thread Claus Ibsen
Hi There is the log component, you can wire tap to http://camel.apache.org/log On Tue, Oct 28, 2014 at 2:29 PM, Lustig, Marc marc.lus...@partner.wirecard.com wrote: Hi, we are using wireTap pattern to log messages into a given file. Is it possible to direct the output into a log4j logger

Re: Consuming from an External WS given only the External WS WSDL definition

2014-10-28 Thread David Mellor
Hi, Thanks, I will look into that we are looking to adopt CXF as our WS standard and I know there is a lot of integration between these two specifications. I have discovered how to do this with CXF if I have the serviceClass but I don't want to generate an entire java tree from the WSDL. In

Re: Expression Language and date:now minus/plus N days

2014-10-28 Thread scottdawson
You may be able to use the Camel Groovy component. We use Groovy like this to compute past dates: setHeader headerName=aWeekAgogroovynew Date().minus(7).format('-MM-dd')/groovy/setHeader Regards, Scott -- View this message in context:

Re: Questions about doneFileName

2014-10-28 Thread Claus Ibsen
Hi Not sure if we changed/fixed so noop=true will delete the done file always or not. I suggest to check the source code what happens today on master branch. On Tue, Oct 28, 2014 at 2:29 PM, BURN, James james.b...@oup.com wrote: Hi Thanks for that Claus. I thought it would be easy enough.

Re: Problems configuring FileIdempotentRepository

2014-10-28 Thread Knut-Håvard Aksnes
The underlying problem is that if the idempotent repository file doesn't exist Camel doesn't seem to create it. If I create it as an empty file the repository seems to always be truncated during the save phase: Even with only a few files there and a with a huge file store size. In the last case I

RedeliveryPolicy is ignored by ActiveMQ in Camel route configuration

2014-10-28 Thread dainiu5m3
Hi, I'm enabling transaction in JMS Queue consuming route, and trying to configure RedeliveryPolicy in Spring/Camel file, but for some reason redelivery policy is ignored, and JMS redelivery happens 6 times, and immediately. What I want to achieve is 3 deliveries, with interval of 2 sec between

Re: Change property in unit test

2014-10-28 Thread ychawla
Hi, I gave this a try but since I am using the plain spring configuration rather than extending a class with Camel Spring Support there isn't a method to override. My class signature looks like this: @RunWith(CamelSpringJUnit4ClassRunner.class) @ContextConfiguration(locations={

Re: Expression Language and date:now minus/plus N days

2014-10-28 Thread geppo
I'm really struggling writing the custom filter. I have defined my own filter which implements GenericFileFilter, but it's only filtering files. It doesn't filter directories. So for example let's say I have the following folder: /2014/Oct/10/somefile.txt I have no idea how to ignore the folder

Re: Expression Language and date:now minus/plus N days

2014-10-28 Thread Claus Ibsen
What version of Camel do you use ? On Tue, Oct 28, 2014 at 5:45 PM, geppo geppore...@gmail.com wrote: I'm really struggling writing the custom filter. I have defined my own filter which implements GenericFileFilter, but it's only filtering files. It doesn't filter directories. So for

Camel use case with Akka

2014-10-28 Thread gmh
All, I am trying to investigate Akka and camel Our use case is as follows: Subscribe to websocket queue and retrieve json from the queue process each json thru Camel routes (atomically) assume large amount of data What would the appropriate design as far as fail over/ dristributed/threading

Re: Expression Language and date:now minus/plus N days

2014-10-28 Thread geppo
2.9.3 and unfortunately I can't upgrade at this stage -- View this message in context: http://camel.465427.n5.nabble.com/Expression-Language-and-date-now-minus-plus-N-days-tp5758210p5758240.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel use case with Akka

2014-10-28 Thread Henryk Konsek
Hi Gordon, Subscribe to websocket queue and retrieve json from the queue process each json thru Camel routes (atomically) assume large amount of data You can achieve it with Camel alone or with Camel as the endpoint point [1] delegating processing to the Akka. What would the appropriate

[VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread Christian Müller
This is a vote to release Apache Camel 2.13.3, a patch release coming with about 103 issues fixed. Release notes: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311211version=12327165 https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311211version=12327166

Re: Camel use case with Akka

2014-10-28 Thread Andreas Gies
Hi Gordon I am using Akka in Combination with Camel within a distributed Retail application. All application parts run on top of Karaf. So far I think, the combination of those technologies is a good choice with respect to scalability and testability. I had used Akka in other applications

Re: [VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread Jeff Genender
+1 Jeff On Oct 28, 2014, at 12:54 PM, Christian Müller christian.muel...@gmail.com wrote: This is a vote to release Apache Camel 2.13.3, a patch release coming with about 103 issues fixed. Release notes:

RE: [VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread Jean-Baptiste Onofré
+1 (non binding) Regards JB Sent from my Samsung Galaxy smartphone. Original message From: Christian Müller christian.muel...@gmail.com Date:28/10/2014 19:54 (GMT+01:00) To: users@camel.apache.org, d...@camel.apache.org, priv...@camel.apache.org Cc: Subject: [VOTE]

Re: Can exception clause works with rest dsl in camel 2.14.0?

2014-10-28 Thread Dewitte P-Alban
Hi, It is not working gloably but for each route it works if you describe a onException clause. A working example : rest(...) .post(/{CamelMongoDbCollection}).description(Save operation) .route() .process(new MRCProcessor()) .to(String.format(mongoDBRoute,

RE: [VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread seijoed
+1 Johan Edstrom jedst...@savoirtech.com Phone (Cell) : +1 303 999 7535 On Tue, Oct 28, 2014 at 1:34 PM, Jean-Baptiste Onofré j...@nanthrax.net wrote: +1 (non binding) Regards JB Sent from my Samsung Galaxy smartphone. Original message From: Christian Müller

[ANNOUNCE] Apache Camel 2.12.5 Released

2014-10-28 Thread Christian Mueller
The Apache Camel project [1] is a powerful open source integration framework based on known Enterprise Integration Patterns [2]. The Camel community announces the immediate availability of the new patch release camel-2.12.5. The artifacts are published and ready for you to download [3] either

Re: Not all processors are listed in JMX, preventing detailed route statistics/profiling

2014-10-28 Thread BlackTie
Charles Moulliard-2 wrote Can you debug the project and add a breakpoint in this method (protected boolean shouldRegister(Object service, Route route) {)) of this class (org.apache.camel.management.DefaultManagementLifecycleStrategy) of camel-core to see if the conditions are matched to

Re: [VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread Ashwin Karpe
+1 On Tuesday, October 28, 2014 3:27 PM, seij...@gmail.com seij...@gmail.com wrote: +1 Johan Edstrom jedst...@savoirtech.com Phone (Cell) : +1 303 999 7535 On Tue, Oct 28, 2014 at 1:34 PM, Jean-Baptiste Onofré j...@nanthrax.net wrote: +1 (non binding) Regards JB Sent from my

Re: [VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread Ashwin Karpe
+1 On Tuesday, October 28, 2014 2:21 PM, Jeff Genender jgenen...@apache.org wrote: +1 Jeff On Oct 28, 2014, at 12:54 PM, Christian Müller christian.muel...@gmail.com wrote: This is a vote to release Apache Camel 2.13.3, a patch release coming with about 103 issues fixed.

Re: [VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread Christian Müller
+1 The signature looks good. The manual looks good. I could install all Camel features in Karaf except camel-optaplanner [1]. I could also upgrade the Camel in Action source code to Camel 2.13.3. I got two errors by executing the tests: [INFO] Compiling 2 source files to

Re: RedeliveryPolicy is ignored by ActiveMQ in Camel route configuration

2014-10-28 Thread Minh Tran
It looks like you've configured redelivery in the activeMQ and not within camel. This means camel isn't the one that is doing the redelivery, activeMQ is. Is this what you wanted to do? On 29/10/2014, at 3:23 AM, dainiu5m3 dainius.mezans...@gmail.com wrote: Hi, I'm enabling transaction in

Re: RedeliveryPolicy is ignored by ActiveMQ in Camel route configuration

2014-10-28 Thread dainiu5m3
Minh Tran-2 wrote It looks like you've configured redelivery in the activeMQ and not within camel. This means camel isn't the one that is doing the redelivery, activeMQ is. Is this what you wanted to do? Yes, that's right. I want to delegate redelivery task to JMS/AMQ, and actually it works,

Re: RedeliveryPolicy is ignored by ActiveMQ in Camel route configuration

2014-10-28 Thread Minh Tran
You can enable logging on the camel and activemq level to see who is doing the redelivery. You can even enable logging on the amq server side for more diagnostic info. From brief look at your code, your delay settings look weird. Your maximum delay is 1 second while your delivery delay is 2s.

Re: Change property in unit test

2014-10-28 Thread Willem Jiang
In this case you may need to put the properties file (myprop.properties) into the test src resource directory to override it. bean id=properties class=org.apache.camel.component.properties.PropertiesComponent     property name=location value=classpath:com/mycompany/myprop.properties/ /bean --

Re: [VOTE] Release Apache Camel 2.13.3

2014-10-28 Thread Willem Jiang
+1. I created a 2.13.x branch in camelinaction repo[1], I didn’t get the the test error that Christian hit. I guess it could relates to the scala version miss march.  [1]https://github.com/camelinaction/camelinaction/tree/2.13.x -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com