Re: Testing REST DSL routes

2015-09-03 Thread Claus Ibsen
camel-test-blueprint is a simple simulated osgi framework. It does not offer HTTP/web services and whatnot. For that you need to use karaf pax-exam testing which boot up a real karaf container for testing. On Fri, Aug 28, 2015 at 3:08 PM, MimerPlusPlus wrote: > Hi > > I've been

Re: Rest DSL Media Type

2015-09-03 Thread Claus Ibsen
Hi That was designed for documentation purpose only (and as a hint to Camel whether its json or xml data), so what you define in produces/consumers/description etc is for documentation, and the swagger-api etc. I assume when you have binding mode enabled then the library that does the binding

Re: Exception thrown when reading a mail with an attached file, which name contains a semicolon

2015-09-03 Thread Claus Ibsen
Hi Can you try with sun java mail instead of ibm? Maybe from an unit test. Also using semi colons in file names is not such a good idea. as afair semi colon is used in some headers to separate multi values, eg content-type=xml; charset=utf-8 You can enable debug option on the mail component and

Re: onCompletion / exchange.isFailed() does not 'see' exception.

2015-09-03 Thread Claus Ibsen
Hi See this link http://camel.apache.org/why-is-the-exception-null-when-i-use-onexception.html On Tue, Sep 1, 2015 at 9:02 AM, rwijngaa wrote: > Hi, > > I have a camel (2.15) route where i want to log an audit message when the > route is successfull or log an an

Re: camel-amqp and latest Qpid JMS

2015-09-03 Thread Claus Ibsen
Hi Yeah I am not sure if it has been updated, but I think its not a very simple upgrade as qpid changed apis / and how to embed it for testing. You are sure welcome to try to upgrade and contribute. We love contributions http://camel.apache.org/contributing On Mon, Aug 24, 2015 at 6:06 AM,

Re: Camel-SJMS cannot convert Jetty objects to JMS object

2015-09-03 Thread Claus Ibsen
Hi Yeah it should use same algorithm to filter out not supported headers automatic like camel-jms. You are welcome to log a JIRA ticket. On Thu, Sep 3, 2015 at 9:09 AM, metatech wrote: > Hello, > > I tried to use the Camel-SJMS component in Camel 2.14.3 (ServiceMix 5.4.1).

Re: IBM MQ and "replyTo" useage - not working

2015-09-03 Thread Claus Ibsen
Hi Do you have activemq-camel on the classpath, if so it has type converters for String -> queue instance and hence creates an ActiveMQQueue. You likely need to create a IBM queue instance as a etc and refer to that in the Something on the line of And then ${ref:myReplyQueue} ...

Re: REST (DSL) in ?

2015-09-03 Thread Claus Ibsen
Hi There is a you can use and then define the rest-dsl in the xml files such as http://camel.apache.org/schema/spring; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;> On Wed, Sep 2, 2015 at 3:36 PM, Scott Stroud wrote: > Is

Re: Jetty -> AHC route producing a lot of threads

2015-09-03 Thread Claus Ibsen
Hi This would be expected as the endpoint is dynamic and therefore each endpoint has their own producer. You should try to use the same endpoint, and if possible if AHC / camel-ahc allows dynamic timeout per request. I am not sure if that is possible / supported. On Mon, Aug 31, 2015 at 11:13

Re: Camel quartz2 trigger.repeatInterval not working

2015-09-03 Thread Claus Ibsen
You have repeat count to 1 which means it should only trigger 1 time. Also try use latest release in case it works there On Mon, Aug 31, 2015 at 11:43 AM, snehal_jagtap wrote: > Hello, > I have been using 'quartz2' for polling and try to poll message after every

Re: Rest DSL Media Type

2015-09-03 Thread Sergey Beryozkin
The problem with expecting a binding mode provider set a response content type is that the client with Accept not matching this 'produces' still gets a result it does not expect - I reported this issue separately. Example, if the client sets Accept: application/xml and hits a route that

Re: kyro data format in camel

2015-09-03 Thread fxthomas
no issue as such in execution of route. -- View this message in context: http://camel.465427.n5.nabble.com/kyro-data-format-in-camel-tp5771093p5771220.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: what's happening to camel extra?

2015-09-03 Thread Pontus Ullgren
Have not seen any other updates on the comdev mailing list no. Perhaps we should reach out to Daniel Gruno (that seems to be in charge of the move) to get a status update for camel-extra. // Pontus On Wed, 2 Sep 2015 at 23:57 Raul Kripalani wrote: > Hey guys, > > Do we have

Re: Rest DSL Media Type

2015-09-03 Thread Gregor Zurowski
Hi Claus, Thanks for your response. I was not aware that produces/consumes was for documentation purposes only. At least, the documentation (http://camel.apache.org/rest.html and http://camel.apache.org/rest-dsl.html) does not clearly state this. I will add a note on the Rest DSL wiki page. I

Re: Rest DSL Media Type

2015-09-03 Thread Sergey Beryozkin
I'm sorry, this was somewhat off-topic as failing non-matching clients is a different issue to setting a response Content-Type, however, FYI, once the intersection of 'produces' and Accept is done the response CT is already known in most cases - this is something a given REST DSL consumer can

Rest DSL: multiple produces values

2015-09-03 Thread Sergey Beryozkin
Hi Is it possible to have a single REST DSL route producing multiple formats, example, either JSON or XML ? I thought it was possible but not sure now. Suppose I have a client with Accept: application/json, application/xml (with .q factor if needed) and I thought if I have

Re: CXF features in camel-cxf component

2015-09-03 Thread Aki Yoshida
you can configure cxf features at the camel-cxf endpoint as well. http://camel.apache.org/cxf.html 2015-09-03 9:59 GMT+02:00 Rafik EL YAAGOUBI (contractor) : > Hello, > > I'm using Camel 15.2, I would like to use camel-cxf component in CXF Dispatch > mode and

Re: Problem upgrading to Camel 2.15.3 in Karaf 3.0.4

2015-09-03 Thread michael.esmann
Thank you very much for the answer!! I will try the new Camel version. NB: I am new to this user forum, and must learn how to search in the existing jira issues to see if a problem has already been resolved ;-) Regards Michael -- View this message in context:

CXF features in camel-cxf component

2015-09-03 Thread Rafik EL YAAGOUBI (contractor)
Hello, I'm using Camel 15.2, I would like to use camel-cxf component in CXF Dispatch mode and enable CXF features, should I configure a custom bus or is there any way to declare features directly in the endpoint? Thank you. Regards, Rafik EL YAAGOUBI

Re: How to submit a ticket/bug report to Camel

2015-09-03 Thread michael.esmann
Ahh .. My problem was, that I activated the *dropdown* menu on the "Create" button and chose "Bug Detail". I should just have clicked directly on the "Create" button. /Michael -- View this message in context:

Camel-SJMS cannot convert Jetty objects to JMS object

2015-09-03 Thread metatech
Hello, I tried to use the Camel-SJMS component in Camel 2.14.3 (ServiceMix 5.4.1). It works nearly completely with the default configuration, both for producers and consumers : this relatively new component seems to be already quite mature ! I had only one problem : when the route is "from" a

Re: Problem upgrading to Camel 2.15.3 in Karaf 3.0.4

2015-09-03 Thread Raul Kripalani
No worries. Welcome and feel free to ask and contribute! Raúl. On 3 Sep 2015 10:03, "michael.esmann" wrote: > Thank you very much for the answer!! I will try the new Camel version. > > NB: I am new to this user forum, and must learn how to search in the >

Re: PEM File for Authentication in route

2015-09-03 Thread anish.somadevan
I have updated my route as follows, GET I get a different error now, java.net.URISyntaxException: Illegal character in path at index 0: org.apache.camel.impl.DefaultComponent.createEndpoint(java.lang.String) throws java.lang.Exception].

Re: PEM File for Authentication in route

2015-09-03 Thread anish.somadevan
I have updated my route as follows, lContextParameters id="Mysslcontext"> GET I get a different error now, Exhausted after delivery attempt: 1 caught: org.apache.camel.component.bean.AmbiguousMethodCallException: Ambiguous method invocations

Re: How to get the file name from an http post submitted to jetty endpoint ?

2015-09-03 Thread s.marjanovic
Hello Andrew, Thank you for your input. I figured out about the content-disposition header myself but it wasn't available and I couldn't have been sure if I could ever expect it from the party that was sending the post. Anyway, the employer decided not to archive the zip but the unzipped contents

Re: Exception thrown when reading a mail with an attached file, which name contains a semicolon

2015-09-03 Thread Thierry Frossard
Hi Claus, Thanks a lot for your response. Concerning the semicolons, it's not my idea, unfortunately I don't have hand on our customer's emails. Best regards, Thierry Frossard Ingénieur de développement Flux de données Tél. 058/758.33.07 www.groupemutuel.ch