Re: Copy current file in a folder

2016-12-07 Thread axdz
Dear, I tried to implement by using their timestamp. Please tell me LastLastModified is timestamp or not? With LastModified , I can not compare with 05:00. public class FileFilters implements GenericFileFilter { public boolean accept(GenericFile file) { System.out.println(file.g

Re: ERROR When unloading a WAR (wildfly 9.x)

2016-12-07 Thread chandler
PS. Thanks for your time -- View this message in context: http://camel.465427.n5.nabble.com/ERROR-When-unloading-a-WAR-wildfly-9-x-tp5791164p5791214.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ERROR When unloading a WAR (wildfly 9.x)

2016-12-07 Thread chandler
/How do you run Camel in WildFly. Is it just a regular WAR you could also run in Tomcat ?/ Yes. A regular WAR. I am using XML DSL and org.springframework.web.context.ContextLoaderListener and org.apache.camel.component.servlet.CamelHttpTransportServlet to start/load the camel context. I have not tr

Kubernetes/Openshift service endpoint parameter to a Bean

2016-12-07 Thread ilter
Hi, I am creating a microservice by using Jetty and spring dsl. I need to access the mongo service which is already created in openshift. Based on the camel documentation i need to create a MongoBean first in order to access mongo component. The question in here how can i give the "service.host" a

Camel Tar aggregation strategy error

2016-12-07 Thread contactreji
Hi I get following error in my code. Here basically I am trying to create a tar image containing 100 aggregated exchanges containing jpg images in body. org.apache.camel.component.file.GenericFileOperationFailedException - Truncated TAR archive This error doesn't occur always. It happens occas

BeanIO - CSV Stream - unmarshal error quote in field text

2016-12-07 Thread Michele
Hi everyone, I have a csv file with delimiter ; and every field is quote ". In this file there is several rows like this that generate an error "x";"x";"x";"foo "bar"";"x";"x"; I tried all possibile configurations in mapping file (section parser) to pass bean io but no result. Then, i tried thi

How to download files fomr a remote web site

2016-12-07 Thread bbuzzard
I would like to download a file from a remote web server (NOT an FTP server). I can easily do this with wget, but I would like to do it with Camel. I need to preserve the lastModified and fileName values. Would someone please suggest an approach that can do this? I tried the following, but it n

Why the file consumer move option working differently with pollEnrich?

2016-12-07 Thread Otto Csatari
Hi, When I use a file consumer the file(s) are renamed to xxx-transfered after processing (as I expected and stated in the doc). But when I use the same with pollEnrich (for just one file) file://in?fileName=demo_keys.ks2&move=${camelId}-uploaded&sendEmptyMessageWhenIdle=true&maxMessagesPerP

OutOfMemoryError when upload file to jetty endpoint

2016-12-07 Thread Vova Shelgunov
Hi, I am using Camel 2.18.1. My configuration: https://storage:8443/data/archive?sslContextParametersRef=sslContextParameters&requestBufferSize=32768&responseBufferSize=32768&httpMethodRestrict=POST"; /> When I uploaded file larger that heap size I got OutOfMemoryError:

Re: IdempotentExtractor error in CDI context

2016-12-07 Thread Antonin Stefanutti
It looks like an exception is thrown by Weld during the execution of the extractor. As this is a Weld internal, I would suggest you contact the Weld user list, they may help you troubleshooting and identify the root cause. Antonin > On 7 Dec 2016, at 15:46, kalber wrote: > > I set up a route

IdempotentExtractor error in CDI context

2016-12-07 Thread kalber
I set up a route annotated with @ApplicationScoped, and inside a route with idempotent settings. Before route starts, i get this error, 07-12-2016 09:03:00 ERROR [DefaultQuartzScheduler-camel-1_Worker-4] IdempotentExtractor: Class='org.jboss.weld.bean.ProducerMethod' method='getEnhancedAnnotate

Re: Contributing an article to the Camel Articles section

2016-12-07 Thread Claus Ibsen
Hi Thanks I added a link to it on the articles page http://camel.apache.org/articles On Wed, Dec 7, 2016 at 11:43 AM, abnair2016 wrote: > The link to the code and the article is on Github here: > https://github.com/abnair2016/spring-camel. Do I need to re-write the > article within this forum in

Re: Copy current file in a folder

2016-12-07 Thread Claus Ibsen
Filter the files by their timestamp so you only select the files that are before 5:00. On Wed, Dec 7, 2016 at 11:36 AM, axdz wrote: > Dear, > > To distinguish those files, I only one information ,some file were moved to > folder1 before 05:00 (5 file), some file were moved to folder1 after 05:00(

Re: Contributing an article to the Camel Articles section

2016-12-07 Thread abnair2016
The link to the code and the article is on Github here: https://github.com/abnair2016/spring-camel. Do I need to re-write the article within this forum in HTML? Thanks, Abhi -- View this message in context: http://camel.465427.n5.nabble.com/Contributing-an-article-to-the-Camel-Articles-sectio

Re: Copy current file in a folder

2016-12-07 Thread axdz
Dear, To distinguish those files, I only one information ,some file were moved to folder1 before 05:00 (5 file), some file were moved to folder1 after 05:00(2 file), later camel copy these file (files were copy to folder1 before 05:00) to folder2. How can I implement this work? Thanks for replyin

Re: Contributing an article to the Camel Articles section

2016-12-07 Thread abnair2016
Thanks. Will do that. -- View this message in context: http://camel.465427.n5.nabble.com/Contributing-an-article-to-the-Camel-Articles-section-tp5791176p5791184.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Copy current file in a folder

2016-12-07 Thread souciance
Well you need to somehow to distinguish those files from files you don't want to copy. Otherwise put them in separate folders. On Wed, Dec 7, 2016 at 10:57 AM, axdz [via Camel] < ml-node+s465427n5791181...@n5.nabble.com> wrote: > Dear, > > I tried to implement this with cron policy.But when these

Re: Copy current file in a folder

2016-12-07 Thread axdz
Dear, I tried to implement this with cron policy.But when these 5 files are being copied, if I move 2 files (file6, file7) to folder1, camel also copy these 2 files from folder1 to folder2. Thanks for replying to me. -- View this message in context: http://camel.465427.n5.nabble.com/Copy-cur

Re: Copy current file in a folder

2016-12-07 Thread axdz
Dear, These five file have no specific name or pattern. My problem is : Copy all file in a folder at 05:00 everyday.files are moved to this folder after 05:00 will not be copied and will be copied at 05:00 next day.Here, I only want to copy one time a day. Thanks for replying to me. Please give

Re: Contributing an article to the Camel Articles section

2016-12-07 Thread Claus Ibsen
Hi You are welcome to post here on the mailing list, then we can put a link to it when its ready to the articles page on the Camel website. On Wed, Dec 7, 2016 at 10:44 AM, abnair2016 wrote: > Hi, > > I have written up an article that replicates a specific use case that is > listed in the Spring

Re: Copy current file in a folder

2016-12-07 Thread souciance
I believe Claus give you the advice of using the cron scheduler to set when your route should be triggered. Use that to trigger it at the time you want. On Wed, Dec 7, 2016 at 10:50 AM, axdz [via Camel] < ml-node+s465427n5791178...@n5.nabble.com> wrote: > Dear, > > These five file have no specifi

Re: XSLT transformation Base64binary and camel xslt

2016-12-07 Thread Gregoire Autric
Hi Ravi, I suggest : * to wrap you document generator lib with base64 dataformat stuff : http://camel.apache.org/base64.html * copy you base64 content to an header * and use it a parameter for xslt template http://camel.apache.org/xslt.html#XSLT-GettingParametersintotheXSLTtoworkwith I hope it

Contributing an article to the Camel Articles section

2016-12-07 Thread abnair2016
Hi, I have written up an article that replicates a specific use case that is listed in the Spring Batch tutorial: https://spring.io/guides/gs/batch-processing, by reading CSV records and converting them into POJOs using Camel Bindy data format and applying Enterprise Integration Patterns (EIPs) li

Re: Copy current file in a folder

2016-12-07 Thread Claus Ibsen
Use the cron scheduler http://camel.apache.org/file2 http://camel.apache.org/polling-consumer.html http://www.davsclaus.com/2013/08/apache-camel-212-even-easier-cron.html On Wed, Dec 7, 2016 at 10:30 AM, axdz wrote: > Dear, > > Thanks for replying to me. > Yes I want copy files one time at 05:15

Re: Copy current file in a folder

2016-12-07 Thread axdz
Dear, Thanks for replying to me. Yes I want copy files one time at 05:15 PM everyday. I set route start time at 05:15 PM. At 05:15 PM there are 5 files in folder1 and I only need to copy these 5 files. file6 and file7 will be copied at 05:15 PM next day. How can I do this work? Thanks, -- V

Re: Copy current file in a folder

2016-12-07 Thread souciance
If those five files have a specific file name or pattern you can use that in your filter to only process those. On Wed, Dec 7, 2016 at 10:30 AM, axdz [via Camel] < ml-node+s465427n5791174...@n5.nabble.com> wrote: > Dear, > > Thanks for replying to me. > Yes I want copy files one time at 05:15 PM

Re: Canot start DefaultCamelContext for Camel-core 2.18.0

2016-12-07 Thread Antonin Stefanutti
It is likely related to https://issues.apache.org/jira/browse/CAMEL-10562. Antonin > On 30 Nov 2016, at 15:07, Claus Ibsen wrote: > > Hi > > Make sure you use Java 8 and that you do not have mixed versions of > Camel on the classpath. > > On Wed, Nov 30, 2016 at 2:58 PM, imben1109 wrote: >>

Re: Rabbitmq URI

2016-12-07 Thread souciance
If you are trying to send to a rabbitmq exchange you can pass parameters like this: setHeader("rabbitmq.ROUTING_KEY", constant("yourroutingkey"))) Basically they are set as headers. The headers are available on the documentation. You need to set them before the actual .to() part. On Wed, Dec 7, 2

Re: Camel SQL as delta consumer

2016-12-07 Thread Claus Ibsen
Hi No this is not supported. There is no state in the SQL component. You can use the idempotent consumer EIP pattern for this http://camel.apache.org/idempotent-consumer.html Mind that this will still query and retrieve the same rows over and over again, then the idempotent will filter out duplic

Re: Copy current file in a folder

2016-12-07 Thread Claus Ibsen
What is your use case? Why do you only want to copy 5 files, are those special files. Or do you only want to copy the first 5 files and never ever any more files? Should you only copy files one time? etc. Usually people want to process any incoming files, and hence why Camel will pickup any new f

Re: ERROR When unloading a WAR (wildfly 9.x)

2016-12-07 Thread Claus Ibsen
Hi How do you run Camel in WildFly. Is it just a regular WAR you could also run in Tomcat ? And what version of Camel do you use? And when Camel stops it should log at INFO level its stopping, so can you see anything in the logs when you undeploy / deploy ? And when Camel stops it stops all the

RE: Copy current file in a folder

2016-12-07 Thread axdz
Dear, I tried to implement fileFilter, but I don't know how to copy only 5 files (file1, file2, file3, file4, file5) *public class FileFilters implements GenericFileFilter { public boolean accept(GenericFile file) { String fileName = file.getFileName(); return false; } }

Re: Rabbitmq URI

2016-12-07 Thread kaiser75
Is there a place where I can find some URI samples for RMQ. How are the options passed and the delimiters -- View this message in context: http://camel.465427.n5.nabble.com/Rabbitmq-URI-tp5791070p5791163.html Sent from the Camel - Users mailing list archive at Nabble.com.