Pulling multiple files in simultaneously

2016-08-31 Thread kikou1984
Hi, Here an example for writing files Using Apache Camel FrameWork in a specific folder. http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/sc

Cache Streaming Treat large file

2016-04-07 Thread kikou1984
Hi, I’m working on a subject “Using Cache with Apache Camel and How to treat large file”. The purpose is to treat large file with camel without loading the file into memory because it’s a huge file over 5 GO. We found several tracks, the first track is to use the splitter component, to allow us

Re: Using Stream Cache With Apache Camel

2015-12-10 Thread kikou1984
Hi Claus, Well, the main purpose is to read a file block by block (for exemple, each 10 Mo) , for that i thought to use the splitter for split sub message, then for other business process, i need to reload the file from the begining (not really from the beginning but some date that has already be

Re: Using Stream Cache With Apache Camel

2015-12-09 Thread kikou1984
When i m trying to get the cache it returns null StreamCache cache = exchange.getIn().getBody(StreamCache.class); Do you have an idea how i can retrieve the StreamCache ? Thxs -- View this message in context: http://camel.465427.n5.nabble.com/Using-Stream-Cache-With-Apache-Camel-tp5774856p5

Using Stream Cache With Apache Camel

2015-12-09 Thread kikou1984
I m using stream caching with this example below. I have three routes. First, I used the split streaming with a token "\n", reading a file splitted by line. Then I made a business process :

Re: Is There a way to treat a large file?

2015-11-18 Thread kikou1984
Thank you for the answer I didn't really understand, how i can i add a parameter to a bean ? ( Also should i keep the property CamelCachedOutputStreamBufferSize ? ) Can you give me an example please. Thank you. -- View this message in context: http://camel.465427.n5.nabble.com/Is-There-a

Is There a way to treat a large file?

2015-11-18 Thread kikou1984
I m using apache Camel to treat files. However, i m asking if i can split a file depending on the number of byte. For exemple , if i have a file with a size like 1 GO, is that possible to read it by block of 10 MO. (with a parameter that defines the size of a block) Is there a component Camel EI

Re: How can i use CDI with the Camel Context

2015-05-21 Thread kikou1984
I have tried to add to the tag beans. xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"; and i add @Named to the Interface DateBusinessManager. Named public interface DateBusinessManager { /** * * * @para

Re: How can i use CDI with the Camel Context

2015-05-21 Thread kikou1984
Hi Claus, So how i can make CDI with Spring Context ? Thxs. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-i-use-CDI-with-the-Camel-Context-tp5767375p5767380.html Sent from the Camel - Users mailing list archive at Nabble.com.

How can i use CDI with the Camel Context

2015-05-21 Thread kikou1984
Hi, I m using camel version 2.10.0. In my route spring XML , i want to use the CamelContextCDI instead of the DefaultCamelContext. How can i do it ? http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:context="http://www.springframework.o

Re: How can i use CDI with CamelTestSupport

2015-05-21 Thread kikou1984
I found a Camel-cdi.jar contains a CdiBeanRegistry with method lookup, how can we use it please in the context ? -- View this message in context: http://camel.465427.n5.nabble.com/How-can-i-use-CDI-with-CamelTestSupport-tp5767328p5767370.html Sent from the Camel - Users mailing list archive at

How can i use CDI with CamelTestSupport

2015-05-20 Thread kikou1984
Hi, I have already posted a question on "http://stackoverflow.com/"; http://stackoverflow.com/questions/30351898/how-can-i-use-cdi-with-cameltestsupport Can anybody help me please. Should i detail the prob

Re: Run once a month Camel Bean

2013-07-17 Thread kikou1984
Ok thxs ! i found it :) -- View this message in context: http://camel.465427.n5.nabble.com/Run-once-a-month-Camel-Bean-tp5735712p5735800.html Sent from the Camel - Users mailing list archive at Nabble.com.

Run once a month Camel Bean

2013-07-16 Thread kikou1984
Hi, Is it possible to execute a camel treatment once a month ? Thxs. -- View this message in context: http://camel.465427.n5.nabble.com/Run-once-a-month-Camel-Bean-tp5735712.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dispatch Array 2 dimension to many routes

2013-04-23 Thread kikou1984
Yesss it works with the wire tap. Thxs from("direct:begin") .bean(BeanSimu.class, "simule_split_Many_Output") .wireTap("direct:routeA", simple("${body[0]}")) .wireTap("direct:routeB", simple("${body[1]}")) .to("mock:result"); Why methods(wire tap) are depr

Re: Dispatch Array 2 dimension to many routes

2013-04-23 Thread kikou1984
Hi , I tried the splitter , like this : public ArrayList> simule_split_Many_Output( Exchange exchange) { ArrayList> lstOflst = new ArrayList>(); ArrayList lstOne = new ArrayList(); ArrayList lstTwo = new ArrayLis

Dispatch Array 2 dimension to many routes

2013-04-22 Thread kikou1984
Hi, I got this bean: public ArrayList> Dispatch(Exchange exchange){ ArrayList> lstOflst = new ArrayList >(); ... exchange.getOut().setBody(lstOflst); return lstOflst ; } lstOflst is an ArrayList 2 dimension which contains ArrayList. ArrayList lst1 = lstOflst.get(0);

Re: recursion with Camel ?

2013-04-02 Thread kikou1984
Hi, Thxs for u r answer , i tried it and it works. sometimes , I complicates things. -- View this message in context: http://camel.465427.n5.nabble.com/recursion-with-Camel-tp5730193p5730226.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: recursion with Camel ?

2013-04-02 Thread kikou1984
Hi, I don t think i need a dynamic routes , i only want make a recursive form to my Bean. The output of the bean, should be injected as input of the same bean !!! like the exemple below. If i have to use dynamic routes, how can i do , i read on the website but i didn't understand how can i us

Re: recursion with Camel ?

2013-04-02 Thread kikou1984
Hi, Actually, i want to restart this bean each time by changing the body. Here an exemple, public void simule_EclatBQE(Exchange exchange){ List in_lst = new ArrayList(); in_lst = (List) exchange.getIn().getBody(); //treatment ArrayList> out_lstOflst = new ArrayList >();

recursion with Camel ?

2013-04-02 Thread kikou1984
Hi, I m trying to simulate recursion with camel, i tried with a Loop but it s not the reel purpose. public ArrayList > simule_EclatBQE(Exchange exchange){ ArrayList> lstOflst = new ArrayList >(); ArrayList lstOne = new ArrayList (); ArrayList lstTwo = new ArrayList ();

Re: Splitter with option

2013-02-04 Thread kikou1984
I tried this one : .split() .method(myClass, "methodTosplit") .choice().when().simple("${property.CamelSplitIndex} == 2") .bean(myClassA, "methodA") .otherwise() .bean(myClassB, "methodB"); it works. if you got a better idea let me know thxs. For each split, the body change by creati

Splitter with option

2013-02-04 Thread kikou1984
Hi, I want to know if i can configure a splitter. Here an exemple : public static ArrayList > methodTosplit(@Headers final Map headers,Exchange exchange) { ArrayList > eclatLst = new ArrayList >(); return eclatLst; } In the main prog: .split() .meth

OnException Problem

2013-01-08 Thread kikou1984
Hi, I followed this exemple on camel site. "http://camel.apache.org/exception-clause.html";. I want to catch all Exception and stop the program when the first Exception is catched. Here the main program : ** public void configure(){

Re: Com between beans

2012-09-21 Thread kikou1984
That's what i did for log, the data is not modified by the bean. Here the log after the split : "IN BEAN A " "IN BEAN A " "IN BEAN A " "IN BEAN A " "IN BEAN A " "IN BEAN B " "IN BEAN C " "IN BEAN D " "IN BEAN E " I want that each element of the split be able to continue the sequence, i want to se

Re: Com between beans

2012-09-21 Thread kikou1984
-> Sending another chaotic I will explain the problem as easily as possible : public void configure() { from("file:///D:/fileCamel/in?noop=true") .bean(First.class,"First") .split().met

Re: Com between beans

2012-09-20 Thread kikou1984
Hi, I tried this code : public void configure() { from("file:///D:/fileCamel/in?noop=true") // .bean(InitConcardisBean.class,"initialisation") .setHeader("TransactionClass",constant("net.awl.bfi

Re: Com between beans

2012-09-20 Thread kikou1984
Thank you for u r answer. I ll explain more :) Here the data : EclatCCTIBean.class -> public static ArrayList > eclatCCTI(Exchange exchange) EclatDBCRBean.class -> ArrayList lstTransac = (ArrayList ) exchange.getIn().getBody(); Suppose that the first Bean contains 5 elements of ArrayList . 1

Re: Com between beans

2012-09-20 Thread kikou1984
Hi , i understood , i used the split like this : try { context.addRoutes( new RouteBuilder() { public void configure() { from("file:///D:/fileCamel/in?noop=true") // .bean(InitConcardisBean.class

Com between beans

2012-09-20 Thread kikou1984
Hi, I have a little problem, I do not know how to implement this idea. I explained the idea. I have this bean: .bean(EclatCCTIBean.class,"eclatCCTI"); That it returns: ArrayList > I want that each element of this table leads to another Beans that takes as input: ArrayList Here is an ex