Re: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread souciance
Hard to say but might because due to conflict here: junit:junit:jar:4.8.1:test[INFO] +- org.mockito:mockito-core:jar:1.10.19:test[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test[INFO] | \- org.objenesis:objenesis:jar:2.1:test[INFO] +- org.slf4j:slf4j-api:jar:1.7.6:provided[INFO] +- org.apache

Re: Help diagnosing camel exception

2017-03-29 Thread souciance
Can you share your code? Also I think it would be good to have some sort of a error handler route where you log errors. You can log these parts to get better info where something failed. setHeader("CamelExceptionCaught", simple("Exception Object: ${property.CamelExceptionCaught}")) .setHeader("Cam

Re: Calling a SOAP wenservice from Camel

2017-03-29 Thread Tomohisa Igarashi
Hi, There're a bunch of unit tests for CXF producer here https://github.com/apache/camel/tree/master/components/camel-cxf/src/test/java/org/apache/camel/component/cxf and examples https://github.com/apache/camel/tree/master/examples Thanks, Tomo On 03/30/2017 02:02 AM, anirban.gupta4 wrote: H

Re: Exception handling in camel

2017-03-29 Thread Ryan T
On a side note to save you some trouble: DO NOT USE the endDoTry() method call. Change them to just end() it will save you a headache as I spent a ton of time figuring why the try catch was not working properly. It should look like the following: Hope that helps. Cheers! -- View this messa

Re: Exception handling in camel

2017-03-29 Thread Ryan T
You can obtain the exception like this in side your ExceptionProcessor: As far as the bean, I am unsure as to what bean you are referring to, but if I could make a guess you probably want to just get the exchange.getIn().getBody() When an exception happens the body of the currently processing m

RE: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread KARR, DAVID
> -Original Message- > From: souciance [mailto:souciance.eqdam.ras...@gmail.com] > Sent: Wednesday, March 29, 2017 1:31 PM > To: users@camel.apache.org > Subject: Re: Issues running unit tests based on CamelTestSupport > > How does your pom look where you run the tests`? I assume what you

Re: Help diagnosing camel exception

2017-03-29 Thread Ryan T
First, thanks souciance for responding. You seem to be the only one that will respond to me posts and you have been of great help. I understand that I am having a timeout because the OUT is not received in time. What I am having trouble finding is what actual part or node that the OUT is not b

Re: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread souciance
How does your pom look where you run the tests`? On Wed, Mar 29, 2017 at 10:27 PM, KARR, DAVID [via Camel] < ml-node+s465427n5796717...@n5.nabble.com> wrote: > > -Original Message- > > From: KARR, DAVID > > Sent: Wednesday, March 29, 2017 12:47 PM > > To: [hidden email] >

RE: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Wednesday, March 29, 2017 12:47 PM > To: users@camel.apache.org > Subject: RE: Issues running unit tests based on CamelTestSupport > > > -Original Message- > > From: KARR, DAVID > > Sent: Wednesday, March 29, 2017 12:07 PM > > To: us

Re: Camel instanciated as null

2017-03-29 Thread mtod09
In JMX I get no entries for this Camel route others work fine that do not use Artemis. Log's give me no errors. I'm getting this from the karaf webconsole seems that the org.apache.activemq can't be resolved. ESBRoute23.xmlESBRoute23.xml Symbolic Name ESBRoute23.xml Version 0.0.0 Bundle Locatio

Re: Camel instanciated as null

2017-03-29 Thread Quinn Stevenson
When you say “it doesn’t run” - what exactly do you see? Can you see the context in JMX? Or is the route just not processing any messages? > On Mar 27, 2017, at 7:58 PM, mtod09 wrote: > > I cleaned this up a bit it loads without any errors but does not run anyone > have any ideas why this wo

RE: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Wednesday, March 29, 2017 12:07 PM > To: users@camel.apache.org > Subject: Issues running unit tests based on CamelTestSupport > > I have only used Camel peripherally before. I'm trying to get some unit > tests working that are based on Cam

Re: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread souciance
I am not sure seems to indicate that it it cannot find the junit rule called TestWatcher. I don't think this is Camel related. I run those tests with Junit and various rules and works fine. Seem if that rule is added to your dependency. On Wed, Mar 29, 2017 at 9:07 PM, KARR, DAVID [via Camel] < ml

Issues running unit tests based on CamelTestSupport

2017-03-29 Thread KARR, DAVID
I have only used Camel peripherally before. I'm trying to get some unit tests working that are based on CamelTestSupport. When I run "mvn install" from the command line, the tests attempt to execute, but I get errors like this: --- [ERROR] Failed to execute goal org.apache.mav

Calling a SOAP wenservice from Camel

2017-03-29 Thread anirban.gupta4
Hi, I want to call a SOAP based webservice from Camel. But I have the SOAP message in String form which I will have to send to the service. Can anyone kindly suggest me how to achieve this in Camel? Regards, Anirban. -- View this message in context: http://camel.465427.n5.nabble.com/Calling-a

Calling a SOAP wenservice from Camel

2017-03-29 Thread anirban.gupta4
Hi, I want to call a SOAP based webservice from Camel. But I have the SOAP message in String form which I will have to send to the service. Can anyone kindly suggest me how to achieve this in Camel? Regards, Anirban. -- View this message in context: http://camel.465427.n5.nabble.com/Calling-a

Re: S3 MultiPart upload for InputStream

2017-03-29 Thread Artur
Hey, Thanks for the answer. I see. I understand that the file will not be loaded to memory, but there's assumption that the file is present on the filesystem local to the process where Camel runs which is not the case in my scenario. I will happily contribute the patch. Thank you for all the inf

Re: Apache Camel - ftp component - need to use absolute path

2017-03-29 Thread Zoran Regvart
Hi Ceyhan, around version 2.16 support for absolute paths was dropped, see the discussion in CAMEL-8828[1] and the linked issue CAMEL-8844[2]. I understand this is a problem for you, but as you can see in those issues relative paths are better in the long run. Perhaps you can make a quick fix on t

Re: Why do we have we to specify a context for @PropertyInject ?

2017-03-29 Thread Antonin Stefanutti
Hi Bernard, Specifying the context attribute for @PropertyInject is currently necessary when dealing with multiple Camel contexts so that the bean post processing can resolve the Camel context to use. If it is not specified, then the default (following CDI semantic, that is with the @Default qu

Re: S3 MultiPart upload for InputStream

2017-03-29 Thread Zoran Regvart
Hi Artur, I don't think that the implementation will load the whole file in memory, looking at CAMEL-7991[1] that introduced multipart support the reasoning behind it was to reduce the memory usage. That being said if you have the need for passing InputStream instead, could you consider contributin

S3 MultiPart upload for InputStream

2017-03-29 Thread Artur
Hello, i am trying to use the AWS-S3 component to multipart upload to S3. The content is coming via network and I was trying to pass an InputStream to the component for uploading. This fails with this message: aws-s3: MultiPart upload requires a File input. (Service: null; Status Code: 0; Erro

Re: SEDA vs embedded ActiveMQ

2017-03-29 Thread souciance
The nice thing about SEDA is that it is built in Camel so you don't need any extra dependencies. On Wed, Mar 29, 2017 at 4:56 PM, Mark Nuttall [via Camel] < ml-node+s465427n5796700...@n5.nabble.com> wrote: > Thanks for the reply. > > Yeah, it will just be simple pub/sub, no topics or message expi

Re: SEDA vs embedded ActiveMQ

2017-03-29 Thread Mark Nuttall
Thanks for the reply. Yeah, it will just be simple pub/sub, no topics or message expiration. So, I think I will switch to SEDA. On Wed, Mar 29, 2017 at 9:53 AM, Quinn Stevenson < qu...@pronoia-solutions.com> wrote: > IMO, if you need features that ActiveMQ provides (publish/subscribe > semantic

Why do we have we to specify a context for @PropertyInject ?

2017-03-29 Thread Bernard Ligny
I am using Camel-CDI features in a war with multiple camel contexts (initialised via a factory), all of them sharing the same set of Camel components (initialised via a factory): In a route being part of a particular context, I want to inject properties (coming from my property file): This is w

Re: SEDA vs embedded ActiveMQ

2017-03-29 Thread Quinn Stevenson
IMO, if you need features that ActiveMQ provides (publish/subscribe semantics (JMS Topics), message expiration, Virtual Topics) then an Embedded ActiveMQ broker makes sense. If SEDA does what you need, I think I’d stick with that. > On Mar 29, 2017, at 6:23 AM, Mark Nuttall wrote: > > Note th

Apache Camel - ftp component - need to use absolute path

2017-03-29 Thread simpleuser
Hi, I am trying to upgrade a product that uses an older camel version (2.15.1) . I am trying to upgrade the camel version to 2.17.5 In the code base, camel ftp component is used with absolute paths... After upgrade we saw that, files could not be consumed due to the following error: SftpCompon

Re: SEDA vs embedded ActiveMQ

2017-03-29 Thread Mark Nuttall
Note that i will be using **embedded** ActiveMQ. (I tried to highlight that in my question) Thus it will _not_ have persistence, reliability or be distributed. So, in light that, does embedded ActiveMQ add any value over SEDA? Or does it just add overhead (i.e. more memory, etc)? On Wed, Mar 29,

Re: SEDA vs embedded ActiveMQ

2017-03-29 Thread Muhzin
The documentation of SEDA has the necessary clarification. The *seda:* component provides asynchronous SEDA > behavior, so that messages > are exchanged on a BlockingQueue >

SEDA vs embedded ActiveMQ

2017-03-29 Thread Mark Nuttall
Which would be the better choice? SEDA or _embedded_ ActiveMQ? I've googled and read the docs. I am just doing some low volume, short live processing and need async worker queues. My only other choice is SQS and it seems like overkill and a lot of extra effort.

Re: can Redis BLPOP (and etc) be used in a consumer URI?

2017-03-29 Thread Mark Nuttall
Thanks. That is what I saw too. I dug through the code and I didnt see any thing else supported. I was hoping for a sanity check. :) Anyway, since Redis pub/sub seems to add no value over embedded activemq or SEDA, and actually means an external dependency, I am not going to use Redis for queues.

Exception handling in camel

2017-03-29 Thread anirban.gupta4
Hi, I have a Camel route like this from("cxf:bean:middlewareCustomerEndpoint") .choice() .when(header("SOAPAction").isEqualTo("action")) .doTry() .process(new Processor1())

http client post two url, how to use one retlet endpoint?

2017-03-29 Thread vonezzz
i wan't use httpclient post http://localhost:8000/hello and http://localhost:8000/world. but i wan't use one retlet endpoint. how to configure the url? -- View this message in context: http://camel.465427.n5.nabble.com/http-client-post-two-url-how-to-use-one-retlet-endpoint-tp5796683.html Sent

how to use restlet component?

2017-03-29 Thread vonezzz
i use from("restlet:http://0.0.0.0:8000/hello) endpoint, why i post http://localhost:8000/hello or http://localhost:8000/helloothers both ok. how to limit client use /hello only? -- View this message in context: http://camel.465427.n5.nabble.com/how-to-use-restlet-component-tp5796682.html Sent