Re: Camel CXF Jaxrs service implementation class's methods are not executing

2014-09-29 Thread vrahul
Thanks Jiang, I understand why control should not go to service impl. But now my concern is why we need to write the impl class at all. As in below example I have create a web service called FeatureService, and in cxf:rsServer tag's serviceClass attribute we need to pass the above FeatureService's

Re: No component found with schema: jms

2014-09-29 Thread Anjenson
Hi I have added the following lines inside beans in order to initialize camel context in xml file (I renamed the file to spring.xml): camel:camelContext id=camel xmlns=http://camel.apache.org/schema/spring; camel:jmxAgent id=agent disabled=true/ /camel:camelContext I am not

Re: No component found with schema: jms

2014-09-29 Thread Claus Ibsen
Hi Yeah check the examples and documentation how to work with Camel and spring. On Mon, Sep 29, 2014 at 9:38 AM, Anjenson hotsmileb...@gmail.com wrote: Hi I have added the following lines inside beans in order to initialize camel context in xml file (I renamed the file to spring.xml):

Re: No component found with schema: jms

2014-09-29 Thread Anjenson
Hi I have went through many examples but they usually are the same. But I have noticed that when initializing connection in code we also need to add a component to context. Could you, please, explain how to do that in xml file? -- View this message in context:

Re: No component found with schema: jms

2014-09-29 Thread Claus Ibsen
When you use Spring, eg define camelContext in a spring xml file, then you define it the usual spring way - whatever ways you can do in Spring. Camel just lookup in the spring application context to find the beans. - in this case lookup by name, to fine a bean with name jms etc. On Mon, Sep 29,

Hazelcast queue consumers

2014-09-29 Thread Benoît Liessens
Hi, On our project we have been using Hazelcast for a couple of months now and we are looking to increase usage of Hazelcast with distributed queues. I was hoping to use Apache Camel to retrieve and process the messages in our hazelcast cluster. (The camel route would be deployed together with

Re: No component found with schema: jms

2014-09-29 Thread Anjenson
Hi I have tried to switch to ActiveMQ just as shown in camel spring-jms example. However, it didn't help. Can this be due to the fact that I didn't use features.xml? 2014-09-29 11:33 GMT+03:00 Claus Ibsen-2 [via Camel] ml-node+s465427n5757182...@n5.nabble.com: When you use Spring, eg define

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread Babak Vahdat
Hi, The json and outJson variables you mentioned will *not* resolve to the same Java object (because of Camel Injector being invoked here behind the scenes while resolving), well almost always ... depending if e.g. an object under the name json-jackson is already bound to the Camel registery

sending nearly same message multiple times to same endpoint

2014-09-29 Thread dermoritz
i have to create a route that sends a message (SOAP) multiple times to same endpoint. The only difference in message is that one attribute (xml, set) is different. At the moment i am using multicast for this: MulticastDefinition multicast = rtdmProcess.multicast();

Unable to fetch Email attachments or Multipart content using Camel-Mail in FuseESB / OSGI

2014-09-29 Thread thigales
I have created an osgi bundle with a pop3 camel route for reading mails. When deployed in servicemix 5.1, the attachments are getting read properly as expected. However, the same bundle gives problem in FuseEsb-7.1.0.fuse-047-1_2013. The contents of message available from within camel exchange(in

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread sohrab
Thanks for the explanation, Babak. I think I see a flaw with this which will break anytime someone uses a custom DataFormat in REST DSL. Say I define a custom JacksonDataFormat in the registry (quite a common thing to do especially if you want to enable/disable config on ObjectMapper) and point

Handling error per endpoint

2014-09-29 Thread Aryan
Hi All, We have a camel route and we want to handle exceptions per endpoint. For example, if the exception is thrown from processor A, we want A number of retries, if thrown from processor B, we want B number of retries and so on. We can handle the exception using doTry and throw our customized

Re: Camel's Swagger vs. Spring MVC Swagger

2014-09-29 Thread Claus Ibsen
On Sun, Sep 28, 2014 at 6:40 PM, Matt Raible m...@raibledesigns.com wrote: On Fri, Sep 26, 2014 at 1:48 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi On Thu, Sep 25, 2014 at 11:23 PM, Matt Raible m...@raibledesigns.com wrote: Hey all, I'm starting to develop a new application and I'm

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread Babak Vahdat
Yeah I see your point. BTW the same shortcoming is also given for the case where binding is XML and not Json, which's the JAXB dataformat being currently supported. So I guess in cases likes yours we need to differentiate the DataFormats for the incomming/outgoing playloads, let’s say something

Re: How catch exception from endpoint which was created in code

2014-09-29 Thread ReDiya
dariusz.skrudlik, Did you find a way to return the Exception back to the bean ? Please share the same. regards ReDiya -- View this message in context: http://camel.465427.n5.nabble.com/How-catch-exception-from-endpoint-which-was-created-in-code-tp5737037p5757202.html Sent from the Camel -

Re: No component found with schema: jms

2014-09-29 Thread Claus Ibsen
On Mon, Sep 29, 2014 at 11:56 AM, Anjenson hotsmileb...@gmail.com wrote: Hi I have tried to switch to ActiveMQ just as shown in camel spring-jms example. However, it didn't help. Can this be due to the fact that I didn't use features.xml? features.xml is when you use OSGi such as Apache

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread Babak Vahdat
Am 29.09.2014 um 17:39 schrieb Claus Ibsen claus.ib...@gmail.com: Hi Yeah we should likely improve the code to cater for when people use custom data formats. Surely most needed for json, as jaxb is well just jaxb using camel-jaxb. The naming should likely just be json json-out

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread Claus Ibsen
Hi Yeah we should likely improve the code to cater for when people use custom data formats. Surely most needed for json, as jaxb is well just jaxb using camel-jaxb. The naming should likely just be json json-out xml xml-out so in is implied, eg so you only use -out if you really need to

Camel JMS XA Transaction with Bitronix - Problem/Question

2014-09-29 Thread mattmadhavan
Hello, I have configured JTA transactions using Bitronix and I have used this configurations for many years for testing my applications outside the J2EE container. Now I am trying to test a simple JMS route using transacted attribute as follows! I am getting the following error!

Re: Camel CXF Jaxrs service implementation class's methods are not executing

2014-09-29 Thread Sergey Beryozkin
Hi, a CXF RS Blueprint extension is available (resourceClass attribute) that can be used to have only the interface supporting the endpoint, I did not use it but Yuhan showed it to me and it looked very cool Cheers, Sergey On 29/09/14 08:15, vrahul wrote: Thanks Jiang, I understand why

Using file URI's correctly

2014-09-29 Thread condreynl
I have a simple route for doing file normalization tasks. I have a working version that goes something like: myRoute extends RouteBuilder(){ configure(){ from(direct:normalize).process().to(file:filePath?fileName=theFileName); }} I have a class that has a CamelContext variable. The

Camel 2.14.0 XSD

2014-09-29 Thread Max Bridgewater
Hi, Could it be that the Camel XSD has not been updated to support Camel 2.14.0? I am not sure if I can see REST DSL constructs in the XSD yet. Regards, Max.

Re: RestBindingProcessor JSON Data Format Config

2014-09-29 Thread sohrab
Raised https://issues.apache.org/jira/browse/CAMEL-7880 BTW would the above fix work when there are multiple HTTP resources, each with their own distinct unmarshalType? i.e. we don't want the one resource configuration be blown away by the next one. Is this starting to sound like a

Camel Restlet with Swagger

2014-09-29 Thread Max Bridgewater
HI, Has anybody used camel-restlet component with camel-swagger? How would the web.xml look? Alternately, is there a way to use the Restlet Swagger extension with Camel? Thanks, Max.

Re: Camel 2.14.0 XSD

2014-09-29 Thread Willem Jiang
Hi, You can find the camel-2.14.0 xsd here[1], there some new added REST DSL definitions. [1]http://camel.apache.org/schema/spring/camel-spring-2.14.0.xsd -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese)