Re: Camel File: how to retain Original File contents when moving file?

2010-05-18 Thread Vikas Kumar Arora
Thanks Claus, That was a good pointer, I think I missed at least moveFailed part, as I was not sure how would camel detect that something has failed. (Just putting solution detail, in case if this helps someone like me) So the solution I applied now is like, once I have the SOAP response I send

Re: Adding/Deleting queues at runtime

2010-05-18 Thread Claus Ibsen
Hi And you got camel-stream.jar on the classpath? You can try with some other component, eg log which is part of camel-core. Or use Tracer to see how messages is routed at runtime http://camel.apache.org/tracer On Tue, May 18, 2010 at 10:35 AM, mevikasg wrote: > > Hi Clan, > > Thanks for the pr

Re: Connecting Custom camel component to remote provider on-startup

2010-05-18 Thread Claus Ibsen
On Tue, May 18, 2010 at 12:41 PM, lekkie wrote: > > Here is a sample of camel applciation I wrote: > > http://camel.apache.org/schema/spring"; > trace="true"> >         uri="customProtocol://${server-ip}:${server-port}/service"/> >     >         >         >     >   > > > This does not call start,

Re: Camel File: how to retain Original File contents when moving file?

2010-05-18 Thread Claus Ibsen
Hi The file component http://camel.apache.org/file2.html Have options where you specify where the file should be moved afterwards. move moveFailed By default it will move files into a hidden .camel sub directory. On Wed, May 19, 2010 at 3:55 AM, Vikas Kumar Arora wrote: > > Hi, > My use case,

Re: InOut not working

2010-05-18 Thread Muhammad Ichsan
2010/5/18 Claus Ibsen : > Try without ?replyTo=out Not working -- ~The best men are men who benefit to others http://michsan.web.id 一緒に勉強しましょう! Yang berkualitas memang beda rasanya! http://rizqi-cookies.com

Camel File: how to retain Original File contents when moving file?

2010-05-18 Thread Vikas Kumar Arora
Hi, My use case, Bulk Load Operation where I've several thousand XML files: 1. Read XML files from a folder 2. wrap A SOAP Message structure around that XML file 3. send it to Web Service 4. transform response from Web Service into XML response (which it already is, but if I give the output of W

Re: How to do Source code attachments for camel osgi bundles in eclipse

2010-05-18 Thread Christian Schneider
I just found an eclipse project that could really help integrate maven and eclipse pde: http://www.eclipse.org/proposals/tycho/ Greetings Christian Am 18.05.2010 22:45, schrieb Christian Schneider: Hi Stephen, of course I started by trying to use maven for osgi. Outside of osgi I really li

Re: How to do Source code attachments for camel osgi bundles in eclipse

2010-05-18 Thread Christian Schneider
I finally found the way to attach the source to the bundle in eclipse pde. The trick is to add a header to the manifest. This is what I added to the Manifest of the camel-core source bundle to make it work in eclipse: Bundle-SymbolicName: org.apache.camel.camel-core.source Eclipse-SourceBundle

Re: How to do Source code attachments for camel osgi bundles in eclipse

2010-05-18 Thread Christian Schneider
Hi Stephen, of course I started by trying to use maven for osgi. Outside of osgi I really like the maven repository where almost anything you need is readily available. The pom´s do a really great job of documenting hiow the projects are structured and help to standardize builds over many sepa

Re: How to do Source code attachments for camel osgi bundles in eclipse

2010-05-18 Thread Stephen Gargan
Christian, Out of curiosity, what cool things does PDE give you that you'd not want to switch? Is it to do with your osgi container? Karaf has excellent integration with mvn (via pax). With it you can pull bundles straight from your mvn repo straight into the running container. Couple this with 'f

Re: How to do Source code attachments for camel osgi bundles in eclipse

2010-05-18 Thread Christian Schneider
Hi Stephen, for non osgi projects I also use maven and have no problem getting the sources. Currently I do not use maven for my osgi projects as the ide support is better when using the pde mode in eclipse. The only problem is that the source code is not attached this way. Greetings Christia

Re: xmlbeans

2010-05-18 Thread Claus Ibsen
Hi We cannot see the route you posted. Its all blank. And a good idea is to look at the unit tests for camel-xmlbeans to see how it does it https://svn.apache.org/repos/asf/camel/trunk/components/camel-xmlbeans/src/test/ On Tue, May 18, 2010 at 6:20 PM, Nortegam wrote: > > Hello > > now I'm tr

Re: FTP creating connections for every file name in the uri

2010-05-18 Thread Claus Ibsen
On Tue, May 18, 2010 at 6:55 PM, Srini97 wrote: > > Hi, > > We observed that when we are using the FTP Endpoint for delivery,  it is > creating a connection for filename (even it is for the same user ) and it is > utilising maximum pool and connection left there and finally getting error > saying

FTP creating connections for every file name in the uri

2010-05-18 Thread Srini97
Hi, We observed that when we are using the FTP Endpoint for delivery, it is creating a connection for filename (even it is for the same user ) and it is utilising maximum pool and connection left there and finally getting error saying maximum connecttions reached. is there any way to handle thi

xmlbeans

2010-05-18 Thread Nortegam
Hello now I'm trying to work with camel and xmlbeans, but I've can not execute a rout. my camel context is next:

Re: How to do Source code attachments for camel osgi bundles in eclipse

2010-05-18 Thread Stephen Gargan
if you run the eclipse plugin with the following flag it will download the sources and attach them in the classpath. mvn eclipse:eclipse -DdownloadSources=true if you're in linux or use cygwin, add quick alias to 'me' and you never need worry about it again. alias me='mvn eclipse:eclipse -Ddownl

Re: InOut not working

2010-05-18 Thread Claus Ibsen
Try without ?replyTo=out On Tue, May 18, 2010 at 3:34 PM, Muhammad Ichsan wrote: > Dear All > > I have the following routes: > > // To test in out pattern > > from("direct:input").setExchangePattern(ExchangePattern.InOut).to("activemq:in?replyTo=out").to("mock:res

InOut not working

2010-05-18 Thread Muhammad Ichsan
Dear All I have the following routes: // To test in out pattern from("direct:input").setExchangePattern(ExchangePattern.InOut).to("activemq:in?replyTo=out").to("mock:result"); from("activemq:in").to("bean:con?method=toExternalMessageRequest").to("bean:biller?meth

Re: How to convert

2010-05-18 Thread Muhammad Ichsan
On Tue, May 18, 2010 at 6:51 PM, Muhammad Ichsan wrote: > Dear All > > I have the following routes: > > from("direct:input").to("activemq:in?replyTo=out").to("mock:result"); > Sorry. My mistake. I should use public class for both message classes. -- ~The best men are men who benefit to others

How to convert

2010-05-18 Thread Muhammad Ichsan
Dear All I have the following routes: from("direct:input").to("activemq:in?replyTo=out").to("mock:result"); // This receive InternalMessage object and send to a biller (the biller bean receive ExternalMessage object) from("activemq:in").to("bean:con?method=toExternalMessageRequest").to("bean:bil

Re: Connecting Custom camel component to remote provider on-startup

2010-05-18 Thread lekkie
Here is a sample of camel applciation I wrote: http://camel.apache.org/schema/spring"; trace="true"> This does not call start, because I purposely logged the function. (It is called when message is sent to the exchange). kr. Claus Ibsen-2 wrote: > >

Re: 2.3-SNAPSHOT: Stream Caching again enabled by Bug Fix for Camel-2686 and CAMEL-2694 (rev 941275)?

2010-05-18 Thread Willem Jiang
Claus Ibsen wrote: On Mon, May 17, 2010 at 3:29 PM, Willem Jiang wrote: Yes, from this point, you can't disable the Stream Caching. But there is a difference between the Stream Caching and current Http binding change. If you don't enable the Stream Caching, there is no interceptor will be used

Re: Adding/Deleting queues at runtime

2010-05-18 Thread mevikasg
Hi Clan, Thanks for the prompt reply. I tried it worked partially as well. Now, i can send / receive the messages. Infact, the enqueue/ dequeue count of the respective queues are getting updated as well. But, i am unable to print the message on Console while consuming. My Controller's code to

How to do Source code attachments for camel osgi bundles in eclipse

2010-05-18 Thread Christian Schneider
Hi all, while trying to get camel running in osgi I would like to be able to debug through the source code in eclipse. When I am not using osgi I usually leave the task of attaching the source to maven which does a great job here. For osgi I have set up a target platform where I copied the cam