Re: One way request - Camel-CXF

2013-02-20 Thread Willem jiang
You can change the below DSL //JMS Endpoint .to("activemq:queue:outputqueue"); to .inOnly("activemq:queue:outputqueue"); -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://wi

Re: One way request - Camel-CXF

2013-02-20 Thread Willem jiang
FYI, I just filled a JIRA[1] for it, the patch is committed into the trunk. [1]https://issues.apache.org/jira/browse/CAMEL-6092 -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http:/

Re: One way request - Camel-CXF

2013-02-20 Thread Willem jiang
Hi, If you just want to send the response to the queue, you need to change the MEP (message exchange pattern) to InOnly, otherwise camel-jms producer will complain about it cannot get the right response on time. BTW, we need to set the MEP according to the request we got in the camel-cxf con

One way request - Camel-CXF

2013-02-20 Thread Gnanaguru S
Hi, I am creating a camel application, where the client sends the SOAP request to the CXF endpoint and the response should be sent to an JMS endpoint. I am getting a error and the message moves to the DLQ. Is that because CXF endpoint itselfs expects the response. I think, I have done a logi

Re: marshal() with MarshalProcessor

2013-02-20 Thread khong07
Hi, I don't marshal in seda:next route because in seda:next route, i'll unmarshal. from("seda:next").unmarshal().json(JsonLibrary.Jackson).to(...); So, i must marshal before sending to seda:next, that why i want using a ProducerTemplate.sendCallBack and call a MarshalProcessor inside Processor.

Re: Questions about spring-ws component

2013-02-20 Thread Willem jiang
Hi, How did you start the camel route? Did you have chance to go through this page[1] and this example[2]? [1]http://camel.apache.org/spring-web-services.html#SpringWebServices-Exposingwebservices [2]http://camel.apache.org/spring-ws-example.html -- Willem Jiang Red Hat, Inc. FuseSource is n

Re: Camel Message Mapping to XML

2013-02-20 Thread Joe San
Thanks for the reply! To describe my case more precisely, in my Processor, I get the JAXB object: MyObj obj = exchange.getIn().getBody(MyObj.class) obj has fields getOne, getTwo, getThree and so on I have to go through those fields and somehow map them to a target object. Some fields in the

Re: Parsing XML Performance

2013-02-20 Thread Christian Müller
Why you do not try it out? ;-) Best, Christian On Wed, Feb 20, 2013 at 2:52 PM, BobbySixKiller wrote: > Hi, > > I have a simple question about parsing xml and performance. Actually my > route is like this : > > from("endpointIn") > .convertBodyTo(String.class)// > .unmarshal().jaxb("com.groupem

Re: URI references to Objects in the Registry

2013-02-20 Thread Christian Müller
We will harmonize this with Camel 3.0 [1]. [1] https://issues.apache.org/jira/browse/CAMEL-6076 Best, Christian On Thu, Feb 14, 2013 at 1:38 PM, Scott Cranton wrote: > I've just noticed the reference syntax that some components use, but > its not clear to me exactly how it works, and more impo

Re: Parsing XML Performance

2013-02-20 Thread Henryk Konsek
Hi, > It works fine but i was wondering, is this route more performant ?: > NB: The xml files are pretty big. If XML (de)serialization is an issue consider using JiBX data format [1]. from("direct:start").unmarshal().jibx(MyMappedBean.class).to(...); JiBX is a speed demon comparing to JAXB. Be

Re: Make xslt component not to validate dtd's (or use local copy)

2013-02-20 Thread Christian Müller
Thanks for sharing your solution! Sent from a mobile device Am 20.02.2013 07:56 schrieb "Dirk Reske" : > Hi, > > no, the uriResolver is used to resolve the xslt file only. > I've found a way, using a processor, that creates a XMLReader using the > CatalogResolver and puts a SAXSource using this x

RE: Why I cannot run multiple CamelContext simultaneously?

2013-02-20 Thread DOLECEK Ales
Should work. Did you EXPLICITLY specified context IDs? If you have more than one context you can't rely on the default since all context would get same - and that is not possible. Ales -Original Message- From: james.z.zhou [mailto:james.z.z...@hotmail.com] Sent: Wednesday, February 20,

Using Camel to control the JMS message priority

2013-02-20 Thread deepak_a
Hi, In the architecture I am working in, messages come into a ActiveMQ Queue from IBM MQ. An application/consumer polls the messages from this active MQ Queue. Note: Active-MQ is configured within JBoss & Camel does the job of moving messages b/w IBM MQ, Active MQ and b/w active MQ; consumer.

Why I cannot run multiple CamelContext simultaneously?

2013-02-20 Thread james.z.zhou
Hi: The story is, I have two camelContexts defined in two XML files, say camel-context1.xml and camel-context2.xml and I imported them to a main.xml, the main.xml looks like: ... DB.xml contains DB-related bean definitions, like jpaComponent and PROCESSOR.xml contains the processor bean def

Re: marshal() with MarshalProcessor

2013-02-20 Thread Henryk Konsek
Hi, > But i want send foo directly to seda:next, how i can do with > MarshalProcessor? Don't call MarshalProcessor from inline processor. Instead pass MarshalProcessor to the DSL directly: from("seda:next").process(marshalProcessor).to(...); Best regards. -- Henryk Konsek http://henryk-konsek.

Parsing XML Performance

2013-02-20 Thread BobbySixKiller
Hi, I have a simple question about parsing xml and performance. Actually my route is like this : from("endpointIn") .convertBodyTo(String.class)// .unmarshal().jaxb("com.groupemb.entite.search.compario.in")// .process(...) where com.groupemb.entite.search.compario.in refers to a jaxb.index

Re: How to use throwExceptionOnFailure=false to differentiate HTTP Status codes

2013-02-20 Thread deepak_a
Hi, I took an *ugly* approach. Capture the HTTP exception (OnExeption) - then find out what type of ShatusCode it is. If its between 400..499 then just simply log the exception, if Status Code is between 500..599 then i manually publish the message back into my ActiveMQ Queue (for camel to again p

Re: Java DSL vs Spring Dsl with Splitter and Aggregator

2013-02-20 Thread Willem jiang
Hi, Did you have chance to check the log file to check if the camel context is started and routes are loaded rightly. I didn't found anything is wrong by just checking the MainSpring code. Can you fill a JIRA and send a small test case on it? So we can keep on digging the issue. -- Willem J