Re: Dynamic xsl with custom uri resolver

2013-08-02 Thread ericsodt
Anyone have any ideas? -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-xsl-with-custom-uri-resolver-tp5736668p5736670.html Sent from the Camel - Users mailing list archive at Nabble.com.

Start new route after transaction completed

2013-08-02 Thread dsemenov
Hello colleagues I have a simple route camel:camelContext id=upstream-entries camel:route camel:from uri=execMqOet:PWJMQM.GOM.GOMJULINT.DEV2?disableReplyTo=true/ camel:onCompletion camel:to direct:separate_tx_route / camel:log

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

2013-08-02 Thread 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 clevers...@gmail.com wrote: Hi : I saw the interface org.apache.camel.spi.Registry has significant changes from 2.10.* to 2.11.* , which lead us some

Can Camel be used as RESTful API webservice client?

2013-08-02 Thread andreyrikunov
Say I would like to exploit Camel as a client to a RESTful web service. But not sure Camel is good enough for such kind of job. I also want to use http4 or ahc component, not cxf. In general I need only two kinds of routes: - from Bean - marshall to Json - to Ahc with static URI - unmarshall

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 claus.ib...@gmail.com 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 clevers...@gmail.com wrote: Hi :

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: 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 a444...@fmr.com wrote:

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 tkns...@gmail.com wrote: Hi, I have a problem. I use Camel-Netty

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 into

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: 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 javamonke...@gmail.com wrote: The

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

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: 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

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: to uri=bean:theHeaderUtil?method=SetMissingHeaderToZero(*, 'XHeader1') / method signature is: SetMissingHeaderToZero(Exchange exchange, 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 stephan.si...@sap.com wrote: You have a component that implements an internal camel interface, but you don't have the source code

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 marco.cr...@gmail.com 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

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 claus.ib...@gmail.com 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 stephan.si...@sap.com wrote: You have a component

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

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 ramru...@yahoo.com wrote: Attempting to implement a proxy service to route requests dynamically using DynamicRouter pattern suggested by

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: 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 answer

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:

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:

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

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 exception

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