Re: Debugging routes

2016-06-10 Thread nicolasduminil
Hi Claus, Yes, I did, this is the reason I'm saying that the documentation (i.e. http://camel.apache.org/how-do-i-debug-my-route.html) shows how to debug routes in unit tests. Hence my question: how to do it outside unit tests ? If you could answer it, I would be very obligated to you. As per haw

Debugging routes

2016-06-10 Thread nicolasduminil
Hello, The Camel documentation explains how to debug routes using unit tests. Does it mean that using Debugger is only possible in unit tests ? How could I do it in an application having an important number of routes, with no unit tests ? Kind regards, Nicolas -- View this message in context:

Re: Trying to use the TarSplitter ...

2016-06-09 Thread nicolasduminil
Waiting for the Jira, how could I work-around this issue ? Do you have any suggestion ? Many thanks in advance, Nicolas DUMINIL -- View this message in context: http://camel.465427.n5.nabble.com/Trying-to-use-the-TarSplitter-tp5783658p5783749.html Sent from the Camel - Users mailing list arch

Re: Trying to use the TarSplitter ...

2016-06-08 Thread nicolasduminil
Hello, Thanks for your reply. So, what you're saying is that org.apache.camel.dataformat.tarfile.TarElementInputStreamWrapper would be an input stream, right ? In this case I don't need to convert it, just could read from it. But I tried the following: from("direct:unzip").unmarshal().gzip()

Trying to use the TarSplitter ...

2016-06-08 Thread nicolasduminil
Hello, I need to process a .tar.gz file in a route and, after some googling, I came at something like the following: ... from("direct:unzip").unmarshal().gzip() .split(new TarSplitter()).process("debug") ... I didn't find much documentation concerning TarSplitter and I'm wondering whethe

Re: Camel Tracer doesn't work

2016-06-08 Thread nicolasduminil
Hi Claus, Thanks for clarifying that. Reading the doc it didn't appear obviously. Kind regards, Nicolas -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Tracer-doesn-t-work-tp5783296p5783621.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel delta-spike: How to share properties between conexts ?

2016-05-31 Thread nicolasduminil
Hi Antonin, Yes, of course, my bad. It works with non-static as expected. Many thanks for your help. Kind regards, Nicolas -- View this message in context: http://camel.465427.n5.nabble.com/Camel-delta-spike-How-to-share-properties-between-contexts-tp5783288p5783300.html Sent from the Camel

Re: Camel delta-spike: How to share properties between conexts ?

2016-05-31 Thread nicolasduminil
Hi Antonin, Many thanks for your reply. I have already seen these examples. My question was concerning the access to the properties. I modified my unit test as follows: @RunWith(CamelCdiRunner.class) public class UnitTests extends CamelTestSupport { @Inject @ConfigProperty(name = "ftp.path")

Camel Tracer doesn't work

2016-05-31 Thread nicolasduminil
Hello, I'm trying to use the Camel Tracer and I set it up, as follows: getContext().setTracing(true); Tracer tracer = new Tracer(); tracer.setLogName("c:/temp/camel-trace.log"); tracer.getDefaultTraceFormatter().setShowProperties(true); tracer.getDefaultTraceFormatter().setSho

Camel delta-spike: How to share properties between conexts ?

2016-05-31 Thread nicolasduminil
Hello, I'm using delta-spike to manage camel routes as I've seen in the provided CDI samples. I have the following route builder: public class MyRouteBuilder extends RouteBuilder { @Override @ContextName("...") public void configure() { from("ftp:{{ftp.path}}").log("Uploading file ${f

Re: How to run camel-cdi projects ?

2016-05-13 Thread nicolasduminil
Hi Antonin, I have posted a file containing the output I get while running the "java -jar" command. It shows the CNFE raised by the execution. I think I have followed all the recommandations in the delta-spike documentation to generate uber jar files. Would you be so kind to look at it and let me

Re: How to run camel-cdi projects ?

2016-05-12 Thread nicolasduminil
Here is the full output obtained when running the java -jar command: out.txt -- View this message in context: http://camel.465427.n5.nabble.com/How-to-run-camel-cdi-projects-tp5781727p5782491.html Sent from the Camel - Users mailing li

Re: How to run camel-cdi projects ?

2016-05-12 Thread nicolasduminil
Hi Antonin, Many thanks again for your help. Using org.apache.camel.cdi.Main as a main class for my uber jar seemed to me a very convenient option. So, I modified my shade plugin config to include this and, after having built and ran it, I got ClassNotFoundException on javax.servlet.HttpServletReq

Re: How to run camel-cdi projects ?

2016-05-11 Thread nicolasduminil
Hi Antonin, I have investigated the direction you've suggested and I think that the (1) is fine. Then I found a lot of example like this: CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer(); cdiContainer.boot(); ContextControl contextControl = cdiContainer.getContextContr

Re: How to run camel-cdi projects ?

2016-05-11 Thread nicolasduminil
Hi Antonin, Many thanks for your reply and sorry fior the delay. I'll investigate these options and I'll post here my results. Kind regards, Nicolas DUMINIL -- View this message in context: http://camel.465427.n5.nabble.com/How-to-run-camel-cdi-projects-tp5781727p5782431.html Sent from the C

How to run camel-cdi projects ?

2016-04-26 Thread nicolasduminil
Hello, Using at several camel-cdi examples, they are all supposed to be ran with camel:run plugin. Which is okay but how things are supposed to happen in production, where using maven is often not an option ? Should one create fat runnable run-with-dependencies or is there any other option ? I ha

Re: java.lang.IllegalArgumentException: Cannot add component as its already previously added: jms

2016-04-25 Thread nicolasduminil
Hi Antonin and Claus, Yes, that did the trick, many thanks. Kind regards, Nicolas -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-IllegalArgumentException-Cannot-add-component-as-its-already-previously-added-jms-tp5781607p5781665.html Sent from the Camel - Users

Re: java.lang.IllegalArgumentException: Cannot add component as its already previously added: jms

2016-04-25 Thread nicolasduminil
Hi Claus, Many thanks for your suggestion. Now the code looks as follows: public class MyRoutes extends RouteBuilder { @Inject @Uri("file:data/inbox?noop=true") private Endpoint inputEndpoint; @Inject @Uri("jms:incommingData") private Endpoint resultEndpoint; @Produces @Named(

Re: java.lang.IllegalArgumentException: Cannot add component as its already previously added: jms

2016-04-25 Thread nicolasduminil
Hello, Many thanks for your reply. Unfortunatelly, doing the mentioned modification doesn't change anything to the described behaviour. Kind regards, Nicolas DUMINIL -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-IllegalArgumentException-Cannot-add-component-as-

java.lang.IllegalArgumentException: Cannot add component as its already previously added: jms

2016-04-23 Thread nicolasduminil
Hello, I'm trying to run a simple route copying a file content to a JMS destination with ActiveMQ. here is the code : public class MyRoutes extends RouteBuilder { @Inject @Uri("file:data/inbox?noop=true") private Endpoint inputEndpoint; @Inject @Uri("jms:incommingData") private Endp

java.lang.LinkageError: org.slf4j.LoggerFactory trying to use Camel 2.15 and WebSphere 8.5

2015-07-22 Thread nicolasduminil
Hello, I'm trying to deploy a simple Camel application in WebSphere 8.5.5. I'm not using the WebSphere OSGi but just a Java EE 6 startup class that creates and starts a route. At the deployment time, it raises: java.lang.LinkageError: org.slf4j.LoggerFactory I'm including a dependency to camel-