Re: Filtering XML exchange body content

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 8:40 AM, David Karlsen davidkarl...@gmail.com wrote: Maybe try an xslt transform? Den 23. jan. 2013 23:26 skrev Martin Stiborský martin.stibor...@gmail.com følgende: Yeah xslt would work. But I assume you can also do transform xpath/foo/bar/xpath /transform To

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 8:13 AM, Thibault Cassan thibault.cas...@gmail.com wrote: Christian, I am using Oracle's JDK. And have you tried restarting the Karaf container after installing all these features. Sometimes this can fix weird issues. Regards, Thibault 2013/1/24 Christian Müller

Re: Splitter EIP query

2013-01-24 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 10:56 PM, gilboy josephoto...@gmail.com wrote: Hi I am using a splitter EIP in my route. I am leveraging the parallelprocessing property of the splitter EIP in my route. My route gets triggered from a quartz endpoint, e.g.

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-24 Thread Thibault Cassan
Yes, I tried to restart Karaf after installing all features. I also tried restarting after each feature install. Each time I get the same error. Le 24 janv. 2013 09:18, Claus Ibsen claus.ib...@gmail.com a écrit : On Thu, Jan 24, 2013 at 8:13 AM, Thibault Cassan thibault.cas...@gmail.com wrote:

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Claus Ibsen
Hi The servlet component requires you to run inside a Servlet container, such as Apache Tomcat, Jetty, and ESB containers such as ServiceMix etc. When you run it standalone as unit test, then there is no servlet container, and you cannot use that. You can swap the servlet with jetty instead.

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 9:21 AM, Thibault Cassan thibault.cas...@gmail.com wrote: Yes, I tried to restart Karaf after installing all features. I also tried restarting after each feature install. Each time I get the same error. Ah have you changed the jre.properties file? See the bottom of the

Re: Websphere 6.1.0.45: Unable to return data from a camel-cxf component (POJO mode)

2013-01-24 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 9:02 PM, panzerhans espen+ca...@tjonneland.no wrote: I have created a CXF webservice and exposed it with camel. The webservice is code first (JSR-181) annotated Java class, springed up in my application context. The class looks like this: @WebService(name=DataExport,

Re: Get full request url from Exchange

2013-01-24 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 10:10 PM, Pranab Mehta rou...@gmail.com wrote: I am running Camel 2.8, and to proxy a https web service I use the following route: from(servlet:///proxyWebService/api/?matchOnUriPrefix=true) .process(myProcessor)

Re: Exceptions management

2013-01-24 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 11:20 AM, developpef src...@orange.fr wrote: Hello, This message to get more explanations on exceptions management on routes. Here is my app : I created a custom MyException extending RuntimeCamelException (wich extends Exception). My routes are :

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-24 Thread Thibault Cassan
Yes, that was it, problem solved! Sorry, it seems I didn't read enough the camel release note... Thanks for having answered this quickly. Regards, Thibault Le 24 janv. 2013 09:26, Claus Ibsen claus.ib...@gmail.com a écrit : On Thu, Jan 24, 2013 at 9:21 AM, Thibault Cassan

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 9:44 AM, Thibault Cassan thibault.cas...@gmail.com wrote: Yes, that was it, problem solved! Sorry, it seems I didn't read enough the camel release note... Thanks for having answered this quickly. Karaf 2.3.x onwards don't require this anymore. Regards, Thibault

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-24 Thread Thibault Cassan
Ok good news. But I was waiting for the next Camel release. I had some issues running all my camel components (xslt, if I remember well) with Karaf 2.3, and someone gave me the advice to wait before migrating. Le 24 janv. 2013 09:50, Claus Ibsen claus.ib...@gmail.com a écrit : On Thu, Jan 24,

Re: NoSuchProviderException: imap while using simple route on Camel 2.10.2 and Karaf 2.2.9

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 9:55 AM, Thibault Cassan thibault.cas...@gmail.com wrote: Ok good news. But I was waiting for the next Camel release. I had some issues running all my camel components (xslt, if I remember well) with Karaf 2.3, and someone gave me the advice to wait before migrating.

Re: add custom soap - header

2013-01-24 Thread Christoph Emmersberger
Hi, I guess you are still on the exchange and set there the exchange header with name operationName instead of adding this header to you're SOAP message. What I've done in the past to solve this issue is the following: (1) Write a SoapHeaderProcessor (2) Receive the SoapMessage from your

Re: Splitter EIP query

2013-01-24 Thread gilboy
Thanks for the response. Yes I was planning on configuring quartz to be stateful. However, even if I configure it to be stateful I am assuming once I hit the splitter(assume message contains a list of objects) with parallelprocessing enabled the quartz thread will complete before the threadpool

Re: Splitter EIP query

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 10:22 AM, gilboy josephoto...@gmail.com wrote: Thanks for the response. Yes I was planning on configuring quartz to be stateful. However, even if I configure it to be stateful I am assuming once I hit the splitter(assume message contains a list of objects) with

Re: Possible bug with multicast shareUnitOfWork

2013-01-24 Thread Willem jiang
I think I found the issue, shareUnitOfWork should create the a new UnitOfWorkProcessor per processing instead of using the last one, as the parent UnitOfWork is different next time. When you using the shareUnitOfWork, the error handler should just get one call. I will commit the fix after

Bindy/FixedLength/encoding/optional fields

2013-01-24 Thread Walzer, Thomas
Hi all, I see strange behaviour in camel-bindy: 1) When I unmarshal a fixed-length file I get errors when the file is encoded in e.g. UTF-8. It seems that characters that need multiple bytes to encode confuse the parser/scanner. There was a JIRA with regard to bindy-csv but nothing

Re: Bindy/FixedLength/encoding/optional fields

2013-01-24 Thread Claus Ibsen
Hi Have you looked at beanio. Its a great library http://camel.apache.org/beanio On Thu, Jan 24, 2013 at 10:41 AM, Walzer, Thomas thomas.wal...@integratix.net wrote: Hi all, I see strange behaviour in camel-bindy: 1) When I unmarshal a fixed-length file I get errors when the file is

Re: Bindy/FixedLength/encoding/optional fields

2013-01-24 Thread Walzer, Thomas
BeanIO looks great, I´ll give it a try. So many libraries - so little time. Thank you Claus. Am 24.01.2013 um 10:49 schrieb Claus Ibsen claus.ib...@gmail.com: Hi Have you looked at beanio. Its a great library http://camel.apache.org/beanio On Thu, Jan 24, 2013 at 10:41 AM,

Re: Exceptions management

2013-01-24 Thread developpef
We currently use 2.10.2 - http://developpef.blogspot.com -- View this message in context: http://camel.465427.n5.nabble.com/Exceptions-management-tp5726051p5726143.html Sent from the Camel - Users mailing list archive at Nabble.com.

binding method result to header

2013-01-24 Thread DOLECEK Ales
Hello, is there way to bind method result to (input) message header. If not then it would be fine if @Header annotation could be used on method. If the exchange has out message it would set the header on the out message. Otherwise it would set the header on in message. Ales

Custom interceptors and finding the first and last camel route

2013-01-24 Thread BAnanth
Hello, We have a requirement wherein we need to do some database operations (inserts/updates) immedialtely after the first and last routes are executed. We would be writing two custom interceptors - one for the insert operation after the first route is executed , and the other for the update

issues with simple example

2013-01-24 Thread AMARNATH, Balachandar
I am new to camel and trying to run a simple example. I have the following classes constitute a simple route which I am not able to run it. public class CamelStarter { /** * @param args */ public static void main(String[] args) throws Exception {

camel shutdown

2013-01-24 Thread siraj
Hi, I have deployed camel in tomcat server. I want to shutdown camel context when the tomcat server down. when tomcat server shutdown, it will call servletcontextlistener contextDestroyed() method. How can i shutdown camel inside servletcontextlistener. thanks. -- View this message in

Re: camel shutdown

2013-01-24 Thread siraj
to the above post, I am using camel 2.10.3 -- View this message in context: http://camel.465427.n5.nabble.com/camel-shutdown-tp5726146p5726147.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel shutdown

2013-01-24 Thread Claus Ibsen
Hi If you are using spring then you can let it handle the lifecycle http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html On Thu, Jan 24, 2013 at 12:06 PM, siraj sira...@gmail.com wrote: Hi, I have deployed camel in tomcat server. I want to shutdown camel context when

Re: add custom soap - header

2013-01-24 Thread Christoph Emmersberger
Hi Gabriel, first of all a general question, have you tried to debug a unit test to solve your issue? As far as I can see by now you are looking into the exchange.getOut() message. Have you tried looking into your exchange.getIn() message? This might resolve your NPE issue. One more thing to

Re: camel shutdown

2013-01-24 Thread siraj
thanks for the reply. I am using spring and i have defined camelcontext in my xml config file: camelContext xmlns=http://camel.apache.org/schema/spring; routeBuilder ref=xmlBuilder / /camelContext I would like to know, when the tomcat server stops will the camel shutdown all routes and

Re: camel shutdown

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 1:24 PM, siraj sira...@gmail.com wrote: thanks for the reply. I am using spring and i have defined camelcontext in my xml config file: camelContext xmlns=http://camel.apache.org/schema/spring; routeBuilder ref=xmlBuilder / /camelContext I would like to know,

Re: add custom soap - header

2013-01-24 Thread Gabriel
Hi Christoph, yes I programmed a jUnit Test. Currently my route lokks like that: camelContext xmlns=http://camel.apache.org/schema/spring; dataFormats soapjaxb contextPath=de.iccs.xapi.customer.v1/ /dataFormats camel:route id=CustomerServiceUpdateCustomerTest

Re: Scala DSL with Scala 2.10

2013-01-24 Thread Alexander Nemish
Claus Ibsen claus.ibsen@... writes: Hi The scalate team has been so kind to cut releases that support Scala 2.9 and 2.10. So the last hurdle for Camel is to have an OSGi bundle of Scala 2.10 which is in the works. When all that is released. We could reconsider upgrading camel-scala

Re: camel shutdown

2013-01-24 Thread siraj
Hi Ashwin, Can you please elaborate some more -- View this message in context: http://camel.465427.n5.nabble.com/camel-shutdown-tp5726146p5726159.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Websphere 6.1.0.45: Unable to return data from a camel-cxf component (POJO mode)

2013-01-24 Thread panzerhans
Thank you for your reply. For the WSDL: Yes, return type is correct. xs:complexType name=fetchVesselRegisterV1Response xs:sequence xs:element minOccurs=0 name=return type=xs:string/ /xs:sequence /xs:complexType I have tried both staying away from putting anything into the

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Zemin Hu
Actually I have been considering using jetty, I just have not tried out yet. Let me know if you have some ready samples in hand for this purpose. I would imagine if I use jetty, I have to put jetty: in front of all URIs, then remove them after unit test, if you want to do test again, you have to

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Willem jiang
Hi, What does your routes look like? Do you need to simulate the Server behavior to the client (which could be a camel route) to test? If you want to use the HttpUnit, you have to use the HttpUnit client API to invoke the service. You can also try to start a embed Jetty server which can hold

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Zemin Hu
You are right. I was trying too hard to use CamelSpringTestSupport, thinking it might be simpler to start my route and to test it together. I am wrong. This CamelSpringTestSupport can do other tests, say file in Ibsen's book, but not for servlet. I am going to quit using CamelSpringTestSupport,

Re: issues with simple example

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 12:32 PM, AMARNATH, Balachandar balachandar.amarn...@airbus.com wrote: I am new to camel and trying to run a simple example. I have the following classes constitute a simple route which I am not able to run it. public class CamelStarter { /** *

Re: binding method result to header

2013-01-24 Thread Claus Ibsen
Hi I am not sure we follow what you talk about. You can read about bean parameter binding in the Camel docs On Thu, Jan 24, 2013 at 11:58 AM, DOLECEK Ales ales.dole...@nextiraone.eu wrote: Hello, is there way to bind method result to (input) message header. If not then it would be fine

Re: Cannot change directory to: \

2013-01-24 Thread Claus Ibsen
On Wed, Jan 23, 2013 at 10:54 PM, iyusuf iqbalyusufdipu+mailingl...@gmail.com wrote: It works with version 2.10.2 Thanks all!! Yeah it turns out it is only 2.10.3 that had this problem. It is fixed in the upcoming 2.10.4. -- View this message in context:

Re: Websphere 6.1.0.45: Unable to return data from a camel-cxf component (POJO mode)

2013-01-24 Thread panzerhans
No change when wrapping the string inside an object. I have two other contract first webservices. Those does not display the above behaviour. So I am going to pick up the WSDL file and rewrite the spring wiring. -- View this message in context:

Wrong test for allowRedeliveryWhileStopping, possible bug.

2013-01-24 Thread lleclerc
Hi, There is a problem that invalidate the test for allowRedeliveryWhileStopping. I am using 2.11-SNAPSHOT and have been looking at the test located in : org.apache.camel.processor.RedeliveryErrorHandlerNoRedeliveryOnShutdownTest I think that right from the start, the test can't last for 20

Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-01-24 Thread Patel, Gaurav
I have camel 2.10.3 installed and am using the example pubring-ElGamal.gpg from 'components\camel-crypto\src\test\resources\org\apache\camel\component\crypto' in camel-crypto and user 'sd...@nowhere.net'. When I run the camel route with mvn camel:run, the RSA encryption works perfectly as well

File component - run them sequentially

2013-01-24 Thread renamsavio
Hi there, I have a doubt.. I've got 3 File components. But I wanna know how to make them run sequentially..in other words, the second File component will be run just when the first one finishes its work in all the files from that directory, and so on.! I tried to use 'delay', but it's not always i

Re: issues with simple example

2013-01-24 Thread Christian Müller
The file endpoint should be a directory and not a file. Sent from a mobile device Am 24.01.2013 12:33 schrieb AMARNATH, Balachandar balachandar.amarn...@airbus.com: I am new to camel and trying to run a simple example. I have the following classes constitute a simple route which I am not able

Re: binding method result to header

2013-01-24 Thread Christian Müller
Ales, You can use the exchange as parameter in your bean method and set you result as in/out header if you want. Sent from a mobile device Am 24.01.2013 11:59 schrieb DOLECEK Ales ales.dole...@nextiraone.eu: Hello, is there way to bind method result to (input) message header. If not then

NullpointerException in ClassPathXmlApplicationContext

2013-01-24 Thread Christian Jacob
Hi there, I'm quite new to Camel and face some problems when building unit tests which extend CamelSpringTestSupport. In the constructor of ttClassPathXmlApplicationContext/tt, I oftenly (*but not always!*) get a NullpointerException. This is the stack trace:p/ Can anybody help me? Many thanks

Re: NullpointerException in ClassPathXmlApplicationContext

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 9:29 PM, Christian Jacob cjaco...@aol.com wrote: Hi there, I'm quite new to Camel and face some problems when building unit tests which extend CamelSpringTestSupport. In the constructor of ttClassPathXmlApplicationContext/tt, I oftenly (*but not always!*) get a

Re: Scala DSL with Scala 2.10

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 2:48 PM, Alexander Nemish anem...@gmail.com wrote: Claus Ibsen claus.ibsen@... writes: Hi The scalate team has been so kind to cut releases that support Scala 2.9 and 2.10. So the last hurdle for Camel is to have an OSGi bundle of Scala 2.10 which is in the works.

Re: File component - run them sequentially

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 8:10 PM, renamsavio renamsav...@gmail.com wrote: Hi there, I have a doubt.. I've got 3 File components. But I wanna know how to make them run sequentially..in other words, the second File component will be run just when the first one finishes its work in all the files

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Claus Ibsen
On Thu, Jan 24, 2013 at 4:56 PM, Zemin Hu zemin...@hotmail.com wrote: You are right. I was trying too hard to use CamelSpringTestSupport, thinking it might be simpler to start my route and to test it together. I am wrong. This CamelSpringTestSupport can do other tests, say file in Ibsen's book,

Re: File component - run them sequentially

2013-01-24 Thread renamsavio
Each file component handles with a diferent directory.. directory root (File Component 1) directory 1 (File Component 2) - File Component 1 finishes processing all the files from its directory, so it starts directory 2 (File Component 3) - File Component 2 finishes

Re: NullpointerException in ClassPathXmlApplicationContext

2013-01-24 Thread Christian Jacob
Hi Claus, I'm using JDK 1.7.0, Camel 2.10.3, and Spring 3.2.0.RELEASE, and I'm running my tests in Eclipse Juno. Thanks for your help. Do you need more informations? Regards, Christian -Ursprüngliche Mitteilung- Von: Claus Ibsen-2 [via Camel]

Re: Tokenize Producing XML That is Not Well-Formed

2013-01-24 Thread Henryk Konsek
If you agree, I'll submit a JIRA issue and can work on a patch. Good catch Greg :) . I created the appropriate Jira issue [1]. We would appreciate if you contribute the patch for the bug you detected. [1] https://issues.apache.org/jira/browse/CAMEL-6012 -- Henryk Konsek

Re: NullpointerException in ClassPathXmlApplicationContext

2013-01-24 Thread Claus Ibsen
On Fri, Jan 25, 2013 at 12:06 AM, Christian Müller christian.muel...@gmail.com wrote: Camel 2.10.3 only supports Spring 3.0.x and 3.1.x. Spring 3.2.x support is added in the upcoming Camel 2.11.0 release. Which concrete JDK 1.7.0 version do you use? Some older ones had issues with parsing XML