Re: Starting and Suspending routes

2012-09-18 Thread william sundberg
Hi, I tried to use the provided code to stop an Route, but it continues to execute even after it have been stopped. Could someone look at this and something that is wrong? br/William Test class: package com.ServerWatcher; import com.ServerWatcher.impl.ServiceSuspender; import org.apache.camel.

Re: Splitting within transactions

2012-09-18 Thread Claus Ibsen
You need to enable shareUnitOfWork=true, and also set stopOnException=true on the splitter http://camel.apache.org/splitter On Tue, Sep 18, 2012 at 7:08 PM, ben1729 wrote: > I have the following route running in ServiceMix (v4.4.2) using Camel v2.8.5: > > from("jms:queue:msci.start") >

Re: Quartz Scheduling to move files

2012-09-18 Thread Claus Ibsen
On Wed, Sep 19, 2012 at 12:17 AM, Chandra Kalirasa wrote: > Hi Claus, > I went through documents, could not get much info. > > This is my scenario: > I am trying to schedule a job that trigger FTP server to move the files > another directory. > > context.addRoutes(new RouteBuilder() { >

Splitting within transactions

2012-09-18 Thread ben1729
I have the following route running in ServiceMix (v4.4.2) using Camel v2.8.5: from("jms:queue:msci.start") .routeId("start-route") .transacted() .process(new Processor() { @Override public void process(Exchange exchange) throw

Re: URI parameters for one Zookeeper endpoint are contaminating another endpoint

2012-09-18 Thread Willem jiang
The ZooKeep endpoint configuration should not be effected by the other endpoints. I just filled a JIRA[1] and will commit the fix as you suggested shortly. [1]https://issues.apache.org/jira/browse/CAMEL-5627 -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fuseso

Re: Camel vs BPEL

2012-09-18 Thread Hadrian Zbarcea
Mostly a social issue, but I totally agree. Also keep in mind when you compare options that Camel is a framework, not a product and BPEL in this context actually means not the spec, but a specific box-wrapped interpretation of it sold as a product. $0.02 + tax Hadrian On 09/14/2012 09:55 AM,

Re: Camel vs BPEL

2012-09-18 Thread Hadrian Zbarcea
Finally somebody who pointed out the real difference. Thanks Bruno. Camel is stateless, WS-BPEL is stateful! If you need to deal with state, which is usually the case, Camel will only partially help. You'll have to deal with persistence and correlation yourself. For simple projects, it's next

Re: Distributed transaction in camel route

2012-09-18 Thread James Carman
Would you be willing to share your configuration (except for passwords) that works for you so that other folks "googling" might be able to learn from what you've discovered? On Tue, Sep 18, 2012 at 7:39 AM, Caa_man wrote: > Thank you! > > Distributed transaction really works with value="false"/

URI parameters for one Zookeeper endpoint are contaminating another endpoint

2012-09-18 Thread Stephen Cranefield
I am using the Apache ZooKeeper component (version 2.10.1) and I have two routes defined: one using a zookeeper consumer endpoint and one using a zookeeper producer endpoint. Each route works fine on its own, but I get an exception when I have both together. The URI parameters on my consumer end

RE: Quartz Scheduling to move files

2012-09-18 Thread Chandra Kalirasa
Hi Claus, I went through documents, could not get much info. This is my scenario: I am trying to schedule a job that trigger FTP server to move the files another directory. context.addRoutes(new RouteBuilder() { public void configure() { from("quartz://myFirstTimer

Re: File renaming problems under Windows

2012-09-18 Thread projectnash1994
Hi, I don't have any solution, but would like to add a note about File api rename issue. If Camel code make use of File API for renaming, then it would fail regardless of JDK. I like to paste snippet from JDK-7 and JDK-6 document - http://docs.oracle.com/javase/7/docs/api/java/io/File.html

Re: Change Sql Component BLOB datatype to XML for Aggregator serialization

2012-09-18 Thread Christian Müller
Hello Alan! Yes, this would be great! As you may know, we love contributions. [1] and [2] will be helpful for you how to contribute to Apache Camel. [1] http://camel.apache.org/contributing.html [2] http://camel.apache.org/building.html Looking forward for your first contribution, Christian On

Re: String replacement via Spring

2012-09-18 Thread Henryk Konsek
> I am guessing that I am hitting some limitations of the Simple language? > Both .replaceAll and .replace seems to work fine when put into a simple Java > program. Please next time provide us the minimal example demonstrating the issue. For example here is the minimal example demonstrating that

Re: File renaming problems under Windows

2012-09-18 Thread Christian Müller
Please find my comments inline. Best, Christian On Tue, Sep 18, 2012 at 11:53 AM, OrackBahama wrote: > Hi, > meanwhile I suspect Windows (or the Java VM, not Camel) to be the culprit > for not unlocking files immediately after renaming. There's an extended > version of the Windows MoveFile-API f

NNTP setup @GMANE.

2012-09-18 Thread projectnash1994
Hi, I still use prefer to use nntp. I am in the process of setting up one for users@camel.apache.org @gmane.org. Could someone help me with following questions? 1) Can we find archived mailing list tar file to import into gmane.org? 2) What is the mailing list software used for users@camel.ap

Re: Multiple routes for same Camel From FTP Endpoint

2012-09-18 Thread Henryk Konsek
Hi, > The main aim for us is to have routes being > independently managed within the camel context. Consider using the Load Balancer [1] pattern. In such case you got single FTP endpoint which "fans-out" FTP messages to desired amount of independent routes. from("ftp://...";). loadBalance().roun

Re: Distributed transaction in camel route

2012-09-18 Thread Christian Müller
Good to know you could figure it out by yourself. Enjoi your further Camel ride, Christian Sent from a mobile device Am 18.09.2012 13:45 schrieb "Caa_man" : > Thank you! > > Distributed transaction really works with value="false"/> and com.ibm.mq.jms.MQXAConnectionFactory class using. > > > >

Re: String replacement via Spring

2012-09-18 Thread gramanero
Thank you for the response Claus. Cool that this is possible. I have been trying to work with the Simple language in order to not have to dive into the other scripting languages. I have had mixed results, none of which have actually worked yet. If I just take your example verbatim, then I getting

Re: Quartz Scheduling to move files

2012-09-18 Thread Claus Ibsen
Hi See route policy http://camel.apache.org/routepolicy This can be used to schedule routes when they shall be active. You can then use this for a route that moves files. On Tue, Sep 18, 2012 at 5:33 PM, Chandra Kalirasa wrote: > Hi: > > I am using Quartz to schedule a job that runs every 20 s

Quartz Scheduling to move files

2012-09-18 Thread Chandra Kalirasa
Hi: I am using Quartz to schedule a job that runs every 20 seconds to move the files from inputdir to outputdir. I am getting errors. Please advise. Thank you, chandra Route: CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() {

Re: FTP-Consumer: Handle UnknowHostException

2012-09-18 Thread Claus Ibsen
On Tue, Sep 18, 2012 at 2:08 PM, Hilde wrote: > Hello Claus! > > Sorry for answering late. > > Yes, I have enabled the option /throwExceptionOnConnectFailed=true/ > Is that ok? > Yeah that would be needed to allow the bridge error handler to react. You may also need to set maximumReconnectAttempt

Re: FTP-Consumer: Handle UnknowHostException

2012-09-18 Thread Hilde
Hello Claus! Sorry for answering late. Yes, I have enabled the option /throwExceptionOnConnectFailed=true/ Is that ok? Cheers Hilde -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Consumer-Handle-UnknowHostException-tp5719362p5719523.html Sent from the Camel - Users ma

Re: Second Split in Route is not working

2012-09-18 Thread cgiera
Claus Ibsen-2 wrote > Instead of split().method, use split(method) > eg supply the method call expression as a parameter. That helps the > compiler. Yes, works fine for me. Thank you very, very much!! kind regards, Christoph -- View this message in context: http://camel.465427.n5.nabble.

Re: Distributed transaction in camel route

2012-09-18 Thread Caa_man
Thank you! Distributed transaction really works with and com.ibm.mq.jms.MQXAConnectionFactory class using. -- View this message in context: http://camel.465427.n5.nabble.com/Distributed-transaction-in-camel-route-tp5719279p5719521.html Sent from the Camel - Users mailing list archive at Nabb

Re: Second Split in Route is not working

2012-09-18 Thread Claus Ibsen
Instead of split().method, use split(method) eg supply the method call expression as a parameter. That helps the compiler. On Tue, Sep 18, 2012 at 12:49 PM, cgiera wrote: > Hello, > > I'm trying to get my route working which looks like the following: > > > The problem I have is that the compile

Second Split in Route is not working

2012-09-18 Thread cgiera
Hello, I'm trying to get my route working which looks like the following: The problem I have is that the compiler says "The method beanRef(String, String) is undefined for the type Object" in the second split: I replaced the .end() with .endSplit() and so the compiler was happy again, but then

Multiple routes for same Camel From FTP Endpoint

2012-09-18 Thread raviwithyou
I am trying to create multiple routes to pick up files from a single FTP location. I want these routes to be running independently. But camel doesn't allow creating more than one route for the same FTP location. I believe that camel posed this restriction as there could be a clash of FTP options li

Re: File renaming problems under Windows

2012-09-18 Thread OrackBahama
Hi, meanwhile I suspect Windows (or the Java VM, not Camel) to be the culprit for not unlocking files immediately after renaming. There's an extended version of the Windows MoveFile-API function (MoveFileEx) that takes extra flags to force Windows to flush copy and delete operations to disk *before

Re: Camel vs BPEL

2012-09-18 Thread Henryk Konsek
> To be honest, I see companies paying extraordinary sums to get hold of TIBCO, > Oracle, WebMethods, etc. consultants. So they end up paying license + > knowledge. With Camel, they only invest in knowledge. Yeah, actually you always need to invest in knowledge. Thinking that company might avoid t

Re: FTP-Consumer: Handle UnknowHostException

2012-09-18 Thread Claus Ibsen
On Fri, Sep 14, 2012 at 4:51 PM, Hilde wrote: > Hello Claus! > > For your approaches I was very glad. The option > /consumer.bridgeErrorHandler=true/ was exactly what I was looking for. > However the onException(Exception.class) inside the ftp consumer route is > not reached! I don't know why. >

Re: Custom Idempotent Jdbc repository + Using lastmodified time

2012-09-18 Thread Claus Ibsen
On Tue, Sep 18, 2012 at 7:25 AM, Siano, Stephan wrote: > There are actually two potential usages for idempotent repositories in > conjunction with (S)FTP endpoints: usage in the endpoint itself or with an > idempotent consumer in the pipeline (as you describe). If you have the > idempotent repo

Re: String replacement via Spring

2012-09-18 Thread Claus Ibsen
Hi You can do a message transformation, and use some of the scripting languages to invoke methods that can do string replacement etc. http://camel.apache.org/languages For example groovy etc. The simple language may also be able to do that if the message body is already a String, using the repla

Re: Cannot stop inputstream during ftp transfer

2012-09-18 Thread Claus Ibsen
Hi If its possible I suggest to try with a newer Camel release to see if that helps. Camel 2.7 is no longer supported by Apache. Though you use a FuseSource version which is still in support by FuseSource. So if you are a subscriber then you can get in touch with them to get help asap. On Fr