How to send Web Service to Oracle using Apache Camel

2013-03-08 Thread takidean
I have to develop an application with Apache Camel which will play the role of a middle-ware between a platform named w-board and 3 Oracle servers. I have to receive Web Services from the w-board and then send that message to a server. I have to identify the destination from the id then route the m

Re: sftp and path

2013-03-08 Thread abhaiji
Hi,I am facing same issue with the sftp component. I tried both stepwise true and false - but it is giving same error. Strangely, I do not get any error if I do not specify the directory and just read write from logged in user's home directory. But if I give a nested or single directory it fails wi

CamelContext resume does not reactivate the route

2013-03-08 Thread rajesh_h
Hello experts, I have a route consuming from file endpoint and then other routes chained downstream using direct:. When I get a particular kind of exception, I want to be able to suspend the CamelContext (camelContext.suspend). And then be able to resume the Context from JMX. Now, what happens

Re: camel-blueprint-test issues

2013-03-08 Thread Ryan Moquin
Right, I can see it was getting a new snapshot. Wasn't sure if there was a way to correlate the numbers. I thought about building the source, but figured I'd be patient :) Thabks for the help! Ryan On Mar 7, 2013 5:55 AM, "Claus Ibsen" wrote: > On Sun, Mar 3, 2013 at 2:38 PM, Ryan Moquin > w

Re: Camel blueprint and drools

2013-03-08 Thread Scott Cranton
Alan, I haven't tried drools with camel and blueprint yet, but I do know that they've made a bunch of osgi enhancements to drools in 6.0-SNAPSHOT. I was thinking of upgrading that camel drools example (still with spring) to see if I could eliminate more of the uberjar stuff... You may want to try

Re: dynamic URI parameter in from URI?

2013-03-08 Thread Christian Müller
You have to create a new route at runtime to archive this, e.g. in a processor: CamelContext context = exchange.getContext(); context.addRoutes(new RouteBuilder() { public void configure() throws Exception { from("") .to(""); } }); Best, Christian Sent from a mobile d

Re: Routing REST request to external URI

2013-03-08 Thread Christian Müller
Yes, checkout the jetty and servlet component. Sent from a mobile device Am 08.03.2013 13:46 schrieb "ramrubio" : > Does Camel support routing an incoming REST request to an external RESTful > service for all http operations. > > For example, > > Client Submits REST request to server A. Server A

Re: Camel mina : data truncated to 1024 bytes

2013-03-08 Thread Christian Müller
Good to know you could figure it out by yourself. Best, Christian Sent from a mobile device Am 07.03.2013 23:44 schrieb "nil" : > We finally find the problem which was in our ProtocolEncoder > implementation. > In fact, the doDecode was reading just 1024 first bytes in the ByteBuffer > whereas o

Routing REST request to external URI

2013-03-08 Thread ramrubio
Does Camel support routing an incoming REST request to an external RESTful service for all http operations. For example, Client Submits REST request to server A. Server A uses Camel to route to appropriate service which resides in Server B. I would like to to this for all HTTP operations (GET,

Issue: Aggregator2 : BatchCompletion disturbed by other completions and fails to happen (when it probably should)

2013-03-08 Thread Tim Pierce
There is a bug - at least I assume it not desired functionality where if you have more than one completion of which .completionFromBatchConsumer() is one of them if Exchange property CamelBatchSize is 2505 and .completionSize( ) is 1000 you would like batches of 1000 - compeltionSize 1000 - comp

Re: zip file best practices

2013-03-08 Thread Henryk Konsek
Hi guys, > Puff, sorry. The Jira is https://issues.apache.org/jira/browse/CAMEL-6139 Actually we already got ZipFile component [1], however it supports only single-entry zip files at the moment. Instead of creating separated module with zip file splitter I suggest to add multi-entry zip files su

Re: Write enriched data after a split in a file

2013-03-08 Thread Jean Francois LE BESCONT
I have added it to manage an pool of stream, it works fine. public class AEDFileWriter { private Map fosPool= new HashMap(); public void writeLine(@Body String data, @Property("OutputFileName") String OutputFileName, @Header("CamelSplitComplete") boolean done) throws IOException { // Get the o

Re: Write enriched data after a split in a file

2013-03-08 Thread Jean Francois LE BESCONT
It works fine with the simple example that is present but in a seda queue executed with concurrentConsumers the bean throw an exception due to concurrency ... 2013/3/8 Jean Francois LE BESCONT > OK ! > > I have create a jira : https://issues.apache.org/jira/browse/CAMEL-6147 ( my > first :) >

Re: Calling a route which uses a quartz consumer via the producertemplate

2013-03-08 Thread Claus Ibsen
On Fri, Mar 8, 2013 at 4:10 PM, gilboy wrote: > Hi > > Assume I have the following route: > > *from(quartz..).to(...)* > > Now, assume I want to call this route out of the quartz schedule. I was > hoping to be able to use the producertemplate. However, it looks like the > quartz endpoint does not

base class for context component?

2013-03-08 Thread Sven Bauhan
Hi, I'm trying to build my own context component as described in http://camel.apache.org/context.html. I wonder if there is a base class or interface I can use for MyContextComponent. I saw there exists org.apache.camel.Component. But the method createEndpoint() I have to implement does not ma

Re: Write enriched data after a split in a file

2013-03-08 Thread Jean Francois LE BESCONT
OK ! I have create a jira : https://issues.apache.org/jira/browse/CAMEL-6147 ( my first :) By the way the solution is a route like this : from("file://C:/Temp/camel/input_test/?noop=true") .setProperty("OutputFileName" , simple("C:/Temp/camel/output_test/${headers.CamelFileName}")) .split() .

Calling a route which uses a quartz consumer via the producertemplate

2013-03-08 Thread gilboy
Hi Assume I have the following route: *from(quartz..).to(...)* Now, assume I want to call this route out of the quartz schedule. I was hoping to be able to use the producertemplate. However, it looks like the quartz endpoint does not have a producer. Is there any other way I can invoke the abov

Polling in subfolder with sftp fail (camel 2.10.4)

2013-03-08 Thread seazor
It seems that the problems sftp & camel are going better but it's not finished... I upgraded from 2.10.3 -> 2.10.4 (see http://camel.465427.n5.nabble.com/Problem-with-donefilename-on-sftp-td5728209.html ) Some of my problems are corrected, but i've one more : I have a route who is polling in a sub

Re: camel-ftp 2.10.4 fails to connect on windows

2013-03-08 Thread xuloo
Seems to be related to this: http://serverfault.com/questions/262760/vsftp-path-with-backslash Camel, on windows, is telling the ftp server to cd \. on mac it does something different - i'm assuming it uses a forward slash /. so a camel-ftp client running on windows (within eclipse RCP, at leas

Re: Write enriched data after a split in a file

2013-03-08 Thread Claus Ibsen
On Fri, Mar 8, 2013 at 2:39 PM, jeff wrote: > the more performante way looks to do : > >from("file://C:/Temp/camel/input_test/?noop=true") > .split() > .tokenize("\n") > // Business lock with possible reject / enrich etc ... >

Re: Write enriched data after a split in a file

2013-03-08 Thread Claus Ibsen
On Fri, Mar 8, 2013 at 3:13 PM, Raúl Kripalani wrote: > I wonder if split().shareUnitOfWork() would help here? > Thats related to have all the work appear as one unit, so when you do error handling / dead letter queue etc. then the entire route rollback if one of the splitter failed etc. > On Ma

Re: Write enriched data after a split in a file

2013-03-08 Thread Raúl Kripalani
I wonder if split().shareUnitOfWork() would help here? On Mar 8, 2013, at 14:02, Claus Ibsen wrote: > On Fri, Mar 8, 2013 at 2:39 PM, jeff wrote: >> the more performante way looks to do : >> >> from("file://C:/Temp/camel/input_test/?noop=true") >> .split() >> .to

Re: Write enriched data after a split in a file

2013-03-08 Thread Claus Ibsen
On Fri, Mar 8, 2013 at 2:39 PM, jeff wrote: > the more performante way looks to do : > >from("file://C:/Temp/camel/input_test/?noop=true") > .split() > .tokenize("\n") > // Business lock with possible reject / enrich etc ... >

Re: Write enriched data after a split in a file

2013-03-08 Thread jeff
the more performante way looks to do : from("file://C:/Temp/camel/input_test/?noop=true") .split() .tokenize("\n") // Business lock with possible reject / enrich etc ... .streaming()

Re: Write enriched data after a split in a file

2013-03-08 Thread Jean Francois LE BESCONT
That is the best practice for do it ? 2013/3/8 Jean Francois LE BESCONT > Thanks Marco ! > > It is an idea ! Claused to the Composed Message Processor ( > http://camel.apache.org/composed-message-processor.html paragraph Example > using only Splitter). > > I am really suprised to have to make a

Re: Camel blueprint and drools

2013-03-08 Thread AlanFoster
I had planned to do that, but i've spent the past week trying to do this with no luck unfortunately! :( I firstly noticed that drools doesn't offer a blueprint namespace handler, so I can't use any of the spring xml instantiation blocks that it has within blueprint! :( I've also tried to expose t

Re: Write enriched data after a split in a file

2013-03-08 Thread Jean Francois LE BESCONT
Thanks Marco ! It is an idea ! Claused to the Composed Message Processor ( http://camel.apache.org/composed-message-processor.html paragraph Example using only Splitter). I am really suprised to have to make a such tips, it looks very complicated for a simple use case no ? 2013/3/8 Marco Wester

Re: Send file via POST request

2013-03-08 Thread Sergey Beryozkin
On 08/03/13 11:56, jamalissimo wrote: Hi, yes, exactly. When I add QueryParam ,PathParam or both together, then no POST is send and file is not uploaded. That is very strange. I've played with the CXF test where @Multipart annotations are used, added @PathParam there (actually returning 'null'

Re: Send file via POST request

2013-03-08 Thread Sergey Beryozkin
Hi, On 08/03/13 11:07, jamalissimo wrote: Hi, I will describe what steps I need to do and what I have done. This route servers as file uploader but not in the right sense of the word. It does not upload file via stream but I need to send the file as part of post request What I need to do: 1.

Re: Write enriched data after a split in a file

2013-03-08 Thread Marco Westermann
Hi, maybe you can process this by using a bean. Then you can open the stream at the beginning and close it at the end. I try to show you what I mean: FileWriterBean fwBean = new FileWriterBean(); public void configure() { from("file://") .bean(fwBean, "openFileForProcessing") .split().tokeniz

Re: Write enriched data after a split in a file

2013-03-08 Thread Jean Francois LE BESCONT
Thanks Willem for help. My explaination are sometime to complicate, I will present it differently. I have a "big" file to process efficiently, for that if I have tried : Method 1 : from("file://C:/Temp/camel/input_test/?noop=true") .split() .tokenize("\n") // Busine

Re: Send file via POST request

2013-03-08 Thread jamalissimo
Hi, I will describe what steps I need to do and what I have done. This route servers as file uploader but not in the right sense of the word. It does not upload file via stream but I need to send the file as part of post request What I need to do: 1. Get QueryParams from given url e.g. http://lo

camel-ftp 2.10.4 fails to connect on windows

2013-03-08 Thread xuloo
I'm building an Eclipse RCP application - i've created a plug-in which uses Camel and, more specifically, the camel-ftp component to connect to an FTP server. FTP server is vsftpd running on a ubuntu 12.x box with standard config. running the application from my macosx 10.8.2 machine it connects

Re: Send file via POST request

2013-03-08 Thread Sergey Beryozkin
Hi, Sorry for a delay; you've mentioned at CXF users that this all actually works except that you have to use some hard-coded values. Can you explain what exactly is hard-coded, are you not able to get the parameters passed to cxfrs uploadFile method ? I think with cxfrs server one has to wr