Re: Camel Axis2 integration

2009-08-14 Thread Claus Ibsen
Hi There is also this tutorial showing how to use Axis 1.x with Camel http://camel.apache.org/tutorial-axis-camel.html Maybe it can be an help also. A dedicated axis2 component does not exist in the Camel distribution. But contributions is much welcome http://camel.apache.org/contributing.html

Re: Camel 2.0 - FTP directory problem

2009-08-14 Thread Willem Jiang
Hi, I think the ftp component create a wrong file name which uses the windows' style file name. Can you try to use the latest released apache-camel-2.0-M3? I think I fixed this issue few month ago. Willem SylviaLi wrote: Thanks for you quick reply - Camel version: apache-camel-2.0-M1 (ca

Re: Camel Axis2 integration

2009-08-14 Thread Willem Jiang
Hi, You can try to use camel-cxf component[1][2] or camel-http[3] component to let camel talk to your Axis2 web services. If you want to run the Axis2 services inside the camel, you may need to migrate your service to CXF[4] first(if your are using JAXWS API, no addition work need to do), be

Re: bean binding with inheritance & 2.0-M3 camel-http

2009-08-14 Thread jjb
Hi My example does use the POST method to send the data by virtue of using the --post-file option to wget. From the wget man page: --post-data=string --post-file=file Use POST as the method for all HTTP requests and send the specified data in the request body. "--post-

Re: Camel 2.0 - FTP directory problem

2009-08-14 Thread SylviaLi
Thanks for you quick reply - Camel version: apache-camel-2.0-M1 (camel-ftp-2.0-M1.jar) FTP from: my laptop (JDK1.6, Window XP Prefessional Version 2002 SP2) FTP to: RedHat ES release 3 Update 7 (FTP server: vsftpd-1.2.1-3E.1) Thanks, Claus Ibsen-2 wrote: > > What OS are you using >

Camel Axis2 integration

2009-08-14 Thread Nick Arjen
Hi , We have already running some Axis2 web services and now we want to have some integration solution too. It seems like Camel is a good integration solution but I'm wonder if any one try out for Camel/Axis2 ? If so , can some one provide a tutorial about Camel/Axis2 integration ..? Thanks

Re: Camel 2.0 - FTP directory problem

2009-08-14 Thread Claus Ibsen
What OS are you using What FTP server are you using And what version of Camel are you precisely using? On Fri, Aug 14, 2009 at 5:39 PM, SylviaLi wrote: > > I am using FTP producer to put file on a remote FTP server by using the > following URL format: > > ftp://usern...@hostname/temp?password=xxx

Re: Creating a full Camel route with scripts

2009-08-14 Thread S. Ali Tokmen
Hello OK, I'll be sounding seriously funny now but how do I launch the GroovyRoutes.groovy file? Cheers S. Ali Tokmen savas-ali.tok...@bull.net Office: +33 4 76 29 76 19 GSM:+33 66 43 00 555 Bull, Architect of an Open World TM http://www.bull.com S. Ali Tokmen a écrit : Coool 8)

Camel 2.0 - FTP directory problem

2009-08-14 Thread SylviaLi
I am using FTP producer to put file on a remote FTP server by using the following URL format: ftp://usern...@hostname/temp?password=xxx (the ftp root is /home/sli, so the target remote direcotory would be /home/sli/temp) The camelfile name is "ftp_test.txt".The FTP component put the file

Re: Try/catch with split

2009-08-14 Thread Charles Moulliard
Here is a new case that I test using direct as endpoint between split and try/catch block. This becomes crazy and in this case, the mock:error receives three times the error and the mock result nothing. I think that in this case, the exchanges are processed separately and we lost the loop available

Re: Does Jaxb With Spring Remoting (proxy) work ?

2009-08-14 Thread Pietroforte
Hi Claus, I made my tests based on the tutorial on spring remoting with JMS by Martin Gilday. Version of Camel: apache-camel-1.6.1 OS: windows xp JDK: 1.5 JAXB: message broker: apache-activemq-5.2.0 (i've tryied with mqseries but had the same behavior The problem happens when, after i start the

Re: Try/catch with split

2009-08-14 Thread Charles Moulliard
I try to translate the syntax of Java DSL into Spring DSL. java.lang.Exception

Re: Try/catch with split

2009-08-14 Thread Charles Moulliard
Thx. With the following syntax, it works : public void testSplitWithError() throws Exception { MockEndpoint error = getMockEndpoint("mock:error"); error.expectedBodiesReceived("James"); error.message(0).property(Exchange.EXCEPTION_CAUGHT).isNotNull(); MockEndpo

Re: Two jetty https endpoints.

2009-08-14 Thread Willem Jiang
Hi, I just checked the camel-jetty component's code and found current JettyHttpComponent only support on https connector. So I filled a JIRA[1] for this issue. [1]https://issues.apache.org/activemq/browse/CAMEL-1911 Willem Srivatsa Katta wrote: Hi, I have two jetty endpoints with https enab

Re: Try/catch with split

2009-08-14 Thread Claus Ibsen
You need try .. catch around the template when you send a message as you do NOT handle the exception and thus the client get this exception back. On Fri, Aug 14, 2009 at 2:43 PM, Charles Moulliard wrote: > I have adapted the test case as you propose but it fails. > > org.apache.camel.CamelExecuti

Re: Try/catch with split

2009-08-14 Thread Charles Moulliard
I have adapted the test case as you propose but it fails. org.apache.camel.CamelExecutionException: Exception occured during execution on the exchange: Exchange[Message: Hello Willem] at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1027) at org.apache.ca

Re: Aggregator - message body not concatenated

2009-08-14 Thread Claus Ibsen
Hi Yes you need to use your own aggregation strategy to "build" the combined single message as you like. The default Camel uses just returns the last message hence why you see aaa. In spring XML there should be a strategyRef attribute you need to refer to a spring bean that implements the org.apa

Aggregator - message body not concatenated

2009-08-14 Thread Serge Merzliakov
Hello, Perhaps I have misunderstood what aggregation can do - ideally concatenate message bodies without using java code to concatenate messages together. My goal is to concatenate lots of messages into a single message e.g. message 1 body --> 'aaa' message 2 body --> 'aaa' which results in a

Re: Try/catch with split

2009-08-14 Thread Claus Ibsen
Hi Works fine I will commit an unit test later when Hadrian is done with the build of Camel 2.0 release. 2 messages goes to mock:result 1 message go to mock:error All as expected. Since you use doTry .. doCatch the client will not receive any exception as he will not do that either when you do

Re: Try/catch with split

2009-08-14 Thread Claus Ibsen
Hi But Camel is smart and flexible so it allows you to lower the handled flag on doCatch (noticed handled(false)) so you can do like this, in which the client will get the exception back in his face. And the mock:error can see the caused exception from a property on the exchange MockEndpo

Re: Try/catch with split

2009-08-14 Thread Charles Moulliard
Many thank. I will test now the Spring DSL version as this is with Spring DSL that I have the issue in my camel route project. Regards, Charles On Fri, Aug 14, 2009 at 10:44 AM, Claus Ibsen wrote: > Hi > > Works fine I will commit an unit test later when Hadrian is done with > the build of C

Two jetty https endpoints.

2009-08-14 Thread Srivatsa Katta
Hi, I have two jetty endpoints with https enabled. I have set all the ssl properties required for https. It works fine when there is only one https end point, but when there are two the last route works but not the first one. Eg : from("jetty:https://0.0.0.0:?matchOnUriPrefix=true";).to("cx