cxf soap call exception when using dataFormat=POJO

2013-08-02 Thread rli
Hi, I'm new to Camel and currently trying to setup a soap call to a web service as part of my learning process. *Environment:* JDK 1.6, Camel 2.11.0 *Web service:* http://www.webservicex.net/stockquote.asmx *WSDL:* http://www.webservicex.net/stockquote.asmx?WSDL *Client stub classes* generated

Route is constructed incorrectly when choice is inside doCatch

2013-08-02 Thread nfh.net
Seems to be a bug in Camel. When constructing a route like: from(...) .log("pointA") .doTry() .process(...) .log("pointB") .doCatch() .choice() .when(...) . .otherwise() . .endChoice() .end .log("pointC") during execution when no except

Re: Dynamic xsl with custom uri resolver

2013-08-02 Thread ericsodt
mox, There is no CSS nor HTML involved. The call to '.to("xslt:transformSubject.xsl?uriResolver=#emailResolver") ' does an xslt transformation. I'm trying to figure out how to make 'transformSubject.xsl' dynamic while still being able to use my custom URIResolver. Thanks! -- View this mes

Re: Start new route after transaction completed

2013-08-02 Thread dsemenov
Thank you Claus That what we tried to do But we need to see results of initial transaction in new one. however that is not always the true, because new one may start before initial committed. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Start-new-route-after-tran

Re: Dynamic XSL from Content

2013-08-02 Thread ericsodt
I am having a similar issue and cannot get my xslt route to use my custom uriResolver. I put into the headers the location of a webservice that will return back the xsl: headers.put("templateLocation", "http://localhost:8080/path/to/stylesheet";); then in my route try and do the following: .rec

Re: Can Camel be used as RESTful API webservice client?

2013-08-02 Thread andreyrikunov
>>> The idea is that UserService#getUserById will call to the external endpoint to actually get a user ? Yes, exactly. >>> If yes: JAX-RS can help there Yeah, I agree, it will work fine. But I wonder if Camel is suitable for such kind of tasks too? I can't find neither negative nor positive ans

Re: a camel based solution that can read message headers without de-queuing a message from the MQ

2013-08-02 Thread vishal025
hii thanx for the quick reply can u help me with the spring dsl for browse component. -- View this message in context: http://camel.465427.n5.nabble.com/a-camel-based-solution-that-can-read-message-headers-without-de-queuing-a-message-from-the-MQ-tp5736556p5736700.html Sent from the Camel

Re: stream caching to HTTP end point

2013-08-02 Thread Claus Ibsen
Hi Yeah this is a bug. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6604 On Thu, Aug 1, 2013 at 3:25 AM, ramrubio wrote: > Attempting to implement a proxy service to route requests dynamically using > DynamicRouter pattern suggested by > http://camel.apache.org/dynamic-rout

Re: Can Camel be used as RESTful API webservice client?

2013-08-02 Thread Sergey Beryozkin
The idea is that UserService#getUserById will call to the external endpoint to actually get a user ? If yes: JAX-RS can help there, it deals with replacing the template variables pretty well, can be managed with the fluent API but also with proxies. Example, you'd initialize a client with "http

Re: Compatibility problem from camel 2.10.* (or may be older) to 2.11.*

2013-08-02 Thread liugang594 Liu
OK, it's worth to try, thanks. 2013/8/2 Claus Ibsen > You can use an adapter for the new version if you have the source > code, and adapt from the old api to the new api. > > On Fri, Aug 2, 2013 at 10:53 AM, Siano, Stephan > wrote: > > You have a component that implements an internal camel int

Re: Compatibility problem from camel 2.10.* (or may be older) to 2.11.*

2013-08-02 Thread liugang594 Liu
Sorry, as my understand, org.apache.camel.spi.Registry should be a public interface, right? or camel user should never implement it directly? I'm not sure about it. 2013/8/2 Siano, Stephan > You have a component that implements an internal camel interface, but you > don't have the source code

Re: Aggregator message redelivery issues

2013-08-02 Thread piotrsl
I've digged little bit more and found possible cause of my problem. I try to simulate unavailability of HawtDBAggregationRepository persistentFile by killing session which was established by one of MQ node to the share location. After than i found in mq logs the following entry which was repeated m

Re: bean String parameter binding

2013-08-02 Thread Marco Crivellaro
Hi, works fine on 2.12-SNAPSHOT, I can't fetch some dependencies to test it on 2.11.2-SNAPSHOT I reported I was using 2.11.2 by mistake, the issue is shown on 2.11.1 Thanks, Marco -- View this message in context: http://camel.465427.n5.nabble.com/bean-String-parameter-binding-tp5736688p57366

Re: bean String parameter binding

2013-08-02 Thread Claus Ibsen
Can you try with SNAPSHOT code. I think its fixed on master, and possible also on the 2.11 branch. On Fri, Aug 2, 2013 at 11:10 AM, Marco Crivellaro wrote: > Hi All, > I am using Camel 2.11.2 with a spring context. > In my route I am calling a bean method passing 2 wildcard params and a > string.

Re: Compatibility problem from camel 2.10.* (or may be older) to 2.11.*

2013-08-02 Thread Claus Ibsen
You can use an adapter for the new version if you have the source code, and adapt from the old api to the new api. On Fri, Aug 2, 2013 at 10:53 AM, Siano, Stephan wrote: > You have a component that implements an internal camel interface, but you > don't have the source code for it? In that case

bean String parameter binding

2013-08-02 Thread Marco Crivellaro
Hi All, I am using Camel 2.11.2 with a spring context. In my route I am calling a bean method passing 2 wildcard params and a string. for example: method signature is: SetMissingHeaderToZero(Exchange exchange, String headersCSV) everything works fine but camel is writing following WARN: WARN

RE: Compatibility problem from camel 2.10.* (or may be older) to 2.11.*

2013-08-02 Thread Siano, Stephan
You have a component that implements an internal camel interface, but you don't have the source code for it? In that case for an update you need to make the person who does have the source code make these changes (otherwise you will be locked in to Camel 2.10 forever)... -Original Message--

Re: Aggregator won't work with filter?

2013-08-02 Thread roger_rabbit
Claus, I just figured it out a few minutes ago and was about to answer :) ... I confirm my correlation expression was wrong. A night of routing lead me to the solution. What confused me what that without a filter, it worked well : because all bodies where the same (ie a default xml content with

Re: Start new route after transaction completed

2013-08-02 Thread Claus Ibsen
Hi You cannot do this using onCompletion. For 2 different TX in the same unit of work, you can use the propagation behaviors with REQUIRES_NEW to start a new TX for the 2nd part. This use-case is covered in Camel in Action book from page 305 onwards. On Thu, Aug 1, 2013 at 11:59 PM, dsemenov wr

Re: save message across exchanges

2013-08-02 Thread Claus Ibsen
Then use something else like a cache component. Or use a bean / processor to store the data you want. And to get the data again when you need. Its a bit like the claim check EIP but across different exchanges. On Thu, Aug 1, 2013 at 5:39 PM, javamonkey79 wrote: > The headers and properties I ha

Re: Aggregator won't work with filter?

2013-08-02 Thread Claus Ibsen
Hi The correlation expression in your aggregator is wrong. You use body() which is likely not what you want. If you just want to put all in the same group then use a constant instead, eg constant(true) or something. I suggest to read about the aggregate EIP again. And if you have a copy of Camel

Re: best practice for logging execution time

2013-08-02 Thread Claus Ibsen
The JMX stats is per Exchange in the processor nodes. There is JMX stats per route as well which would then be "per route" And likewise a JMX stats for the entire CamelContext. So you have 3 different levels of stats. So in your aggregate route, you will have stats for all incoming exchanges int

Re: I can't receive packet in Multi-NIC machine

2013-08-02 Thread Claus Ibsen
Hi Try Camel 2.12 which has a new networkInterface option where you can specify the interface to bind to. A SNAPSHOT of 2.12 can be downloaded http://camel.apache.org/download On Fri, Aug 2, 2013 at 12:29 AM, Satoyuki Tsukano wrote: > Hi, > > I have a problem. > I use Camel-Netty to receive UDP

Re: Multicast Memory HeapSize issue

2013-08-02 Thread Claus Ibsen
Streaming is a good idea to use if you do not need to know the total size in advance. As with streaming the splitting is done in an iterated fashion, where as non streaming the iteration is done on a list (eg to know the total size) On Thu, Aug 1, 2013 at 5:23 PM, jasonor wrote: > Hi Claus, thank

Re: Dynamic xsl with custom uri resolver

2013-08-02 Thread Mike Oxford
The CSS which is loaded is defined in your HTML. If you're going to use a parameter to fetch the HTML, you're going to have to dynamically rewrite that HTML to point to the correct CSS. Whether you use a handler to rewrite where to get the CSS file, or whether it shoves all the CSS into the HTML

Re: Compatibility problem from camel 2.10.* (or may be older) to 2.11.*

2013-08-02 Thread liugang594 Liu
if no source code, seems not way to make it work on new version. :( 2013/8/2 Claus Ibsen > Just add the new methods to the registry implementation and it works > in both 2.10 and 2.11. > > > > On Fri, Aug 2, 2013 at 4:19 AM, liugang594 Liu > wrote: > > Hi : > > > > I saw the interface org.apac