Re: camel-hazelcast & Transactions

2013-02-04 Thread Romain Manni-Bucau
Hazelcast has a jca adaptor so it can work too Le 5 févr. 2013 08:28, "Claus Ibsen" a écrit : > You can only use transactions with JMS and JDBC. (and possible a few > other technologies). > > > On Tue, Feb 5, 2013 at 8:16 AM, xanko wrote: > > Hi, > > > > I want use hazelcast component to share d

Re: camel-hazelcast & Transactions

2013-02-04 Thread Claus Ibsen
You can only use transactions with JMS and JDBC. (and possible a few other technologies). On Tue, Feb 5, 2013 at 8:16 AM, xanko wrote: > Hi, > > I want use hazelcast component to share data between routes. See below (in a > webapp with spring) : > > > > > http://camel.apach

camel-hazelcast & Transactions

2013-02-04 Thread xanko
Hi, I want use hazelcast component to share data between routes. See below (in a webapp with spring) : http://camel.apache.org/schema/spring";>

Re: File transfer using ftp failed

2013-02-04 Thread Claus Ibsen
On Tue, Feb 5, 2013 at 5:43 AM, AMARNATH, Balachandar wrote: > Hello, > > I tried to do a file transfer using apache camel route using the following > route > > from("ftp://@/etc/?password=") > .process(new Processor() { > public void process(Exchange exchange) throws

Re: Event Driven Use Case

2013-02-04 Thread Rakesh Sharma
Hi Pontus & Henryk, Thanks so much for very valuable ideas. They are going to be very useful for me. I need some more help from you on the following points: 1. How can I implement the state saving and reconstructing using memento in a generic way without serialization? I need to make it generic so

File transfer using ftp failed

2013-02-04 Thread AMARNATH, Balachandar
Hello, I tried to do a file transfer using apache camel route using the following route from("ftp://@/etc/?password=") .process(new Processor() { public void process(Exchange exchange) throws Exception { // do something } }).to("file:///tmp/

RE: Files from remote host

2013-02-04 Thread AMARNATH, Balachandar
Absolutely no reason. One of the user successfully used file:/// to transfer files ! And hence, I was curious to replicate this. Regards Bala -Original Message- From: Christian Müller [mailto:christian.muel...@gmail.com] Sent: 05 February 2013 03:36 To: users@camel.apache.org Cc: tamilv

Re: Setting SOAP Headers using spring-ws

2013-02-04 Thread Willem jiang
The issue may be out of our radar a while, so the patch is not applied into the code base. I will spend some time on it when I'm free this week. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blog

Re: Setting SOAP Headers using spring-ws

2013-02-04 Thread massimovirgilio
Hi, I have the same requirement. I am using spring-ws to produce webservice messages and I need to add to the soap header a custom header. Is there any build where this feature is implemented? I have found so far this patch (https://issues.apache.org/jira/secure/attachment/12502071/CAMEL-4515.2.p

Re: calling camel route from a Servlet Filter

2013-02-04 Thread Willem jiang
Hi, Here is an example[1][2] that you may take a look. [1]http://camel.apache.org/spring-security-example.html [2]https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-spring-security/src/main/webapp/WEB-INF/web.xml -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red

Re: Camel direct component

2013-02-04 Thread Willem jiang
There are some use cases: If you take a look at the unit tests in camel, you will find we leverage the direct component to send the request to the camel context to test the route. If you have a big route, you can use the direct component to break it to serval sub route, it can make the route mo

RE: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-02-04 Thread Patel, Gaurav
Was anyone able to reproduce? I've run the scenario on ServiceMix, Karaf + Camel and FuseESB (linux and windows) all to the same effect: no key spec. I've even tried installing Bouncy Castle and the unlimited security policy against my JDK/JRE and not putting anything into Karaf/lib/ext and no

RE: Files from remote host

2013-02-04 Thread Christian Müller
Any reason not to use ftp://... in your consumer endpoint? Or ftps://... or sftp://.. Sent from a mobile device Am 04.02.2013 05:53 schrieb "AMARNATH, Balachandar" < balachandar.amarn...@airbus.com>: > Dear Tamilvanan > > I could not really get it work. But I appreciate if you can point me where

AW: http4 to blast requests

2013-02-04 Thread jhm
>From http://camel.apache.org/async.html "Example: threads DSL" // list on the JMS queue for new orders from("jms:queue:order") // do some sanity check validation .to("bean:validateOrder") .to("mock:validate") // use multi threading with a pool size of 20 // turn the route async

http4 to blast requests

2013-02-04 Thread erstanl
Can someone explain to me what this route is doing? from("direct:registerStuff") .threads(19) .to(String.format( "https4://%s?authUsername=%s&authPassword=%s",

Re: Camel-QuickFix Component issue

2013-02-04 Thread Christian Müller
I will have a look at it when I find some time for it. Busy days... Best, Christian On Thu, Jan 17, 2013 at 11:48 AM, yogu13 wrote: > Have created a JIRA Issues for this and details can be found @ > https://issues.apache.org/jira/browse/CAMEL-5979 > > > > -- > View this message in context: > ht

Re: Splitter with option

2013-02-04 Thread Claus Ibsen
On Mon, Feb 4, 2013 at 4:35 PM, kikou1984 wrote: > I tried this one : > > > .split() > .method(myClass, "methodTosplit") > .choice().when().simple("${property.CamelSplitIndex} == 2") > .bean(myClassA, "methodA") > .otherwise() >.bean(myClassB, "methodB"); > > > it works. > > if you got a be

Re: trying to understand cxf dataformats, and how to add a soapheader to cxf proxied webservice

2013-02-04 Thread Nico Mommaerts
So, adding a soapheader is not a problem anymore, I configured the dataformat to CXF_MESSAGE, and added a processor in which I can simply add header elements. But my original problem remains, as soon as I change the dataformat to something different from MESSAGE, the request-reply doesn't work cor

Re: Event Driven Use Case

2013-02-04 Thread Henryk Konsek
Hi, > I would as you describe use the claimcheck Pontus answer is a fair solution. A bit of elaboration from my side. First of all I must mention however that I would strongly prefer to create POJO-based memento [1] instead of serializing the exchanges. In order to avoid the need to clean up ex

Re: Splitter with option

2013-02-04 Thread kikou1984
I tried this one : .split() .method(myClass, "methodTosplit") .choice().when().simple("${property.CamelSplitIndex} == 2") .bean(myClassA, "methodA") .otherwise() .bean(myClassB, "methodB"); it works. if you got a better idea let me know thxs. For each split, the body change by creati

Re: How to set proxy excludes on http component?

2013-02-04 Thread Christian Schäfer
Interesting idea to set proxy in the camel context. Will check if it's appropriate. Thanks for confirming that http proxy excludes are not yet supported.   regards, Christian Von: Willem jiang An: users@camel.apache.org; Christian Schäfer Gesendet: 4:32 Mo

Re: Splitter with option

2013-02-04 Thread Claus Ibsen
Hi You can use the content based router to route to bean A or bean B depending on some predicate. eg like if ... else ... On Mon, Feb 4, 2013 at 2:54 PM, kikou1984 wrote: > Hi, > > I want to know if i can configure a splitter. > Here an exemple : > > public static ArrayList > methodTosplit(@Hea

Splitter with option

2013-02-04 Thread kikou1984
Hi, I want to know if i can configure a splitter. Here an exemple : public static ArrayList > methodTosplit(@Headers final Map headers,Exchange exchange) { ArrayList > eclatLst = new ArrayList >(); return eclatLst; } In the main prog: .split() .meth

AW: Calling count function in the camel route

2013-02-04 Thread jhm
Ok, forgotten to invoke the assertIdSatisfied() ... @Test public void count() throws InterruptedException { MockEndpoint mock = getMockEndpoint("mock:result"); mock.expectedMessageCount(1); mock.expectedHeaderReceived("count", 3); template

AW: Calling count function in the camel route

2013-02-04 Thread jhm
I tried some of mock.expect* methods, but I couldnt write the assert with one of them. Is this possible? Jan -Ursprüngliche Nachricht- Von: Jan Matèrne (jhm) [mailto:apa...@materne.de] Gesendet: Montag, 4. Februar 2013 14:24 An: users@camel.apache.org Betreff: AW: Calling count function

AW: Calling count function in the camel route

2013-02-04 Thread jhm
Played a little bit with that. This example works for me. cheers Jan public class XpathCountTest extends CamelTestSupport { @Test public void count() { final MockEndpoint mock = getMockEndpoint("mock:result"); mock.expectedMessageCount(1);

Re: Calling count function in the camel route

2013-02-04 Thread Claus Ibsen
On Mon, Feb 4, 2013 at 1:45 PM, dkum003 wrote: > Hi Claus, > > The xml is pretty simple.. say a list of tags... > > > So i need to get the count of h3 tags and store it in the exchange header. > Hi See this page http://camel.apache.org/xpath About namespace auditing. If your xml has namespaces,

Re: Calling count function in the camel route

2013-02-04 Thread dkum003
Hi Claus, The xml is pretty simple.. say a list of tags... So i need to get the count of h3 tags and store it in the exchange header. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Calling-count-function-in-the-camel-route-tp5726886p5726891.html Sent from the Cam

Re: Calling count function in the camel route

2013-02-04 Thread Claus Ibsen
Hi We cannot see your XML code snippets in this mail. Neither can we see that from the nabble link. On Mon, Feb 4, 2013 at 12:59 PM, dkum003 wrote: > Hi, > > I am using DSL way of camel. At a certain point my exchange body has an xml > with a list of certain tag say > > > > > > > > How can i i

Calling count function in the camel route

2013-02-04 Thread dkum003
Hi, I am using DSL way of camel. At a certain point my exchange body has an xml with a list of certain tag say How can i invoke the count function in the route to know the number of tags. I tried .setHeader("count",xpath("count(A)") But no luck Please help -- View this messa

Re: Google Plus - Apache Group

2013-02-04 Thread Robert Davies
It is *NOT* OK to make defamatory comments about an organisation, individuals or groups of people and use rumour and innuendo to do so. On 1 February 2013 15:31, Hadrian Zbarcea wrote: > Rob, just drop it. You know very well James is right. A similar complaint > was made just a few days ago abou

Re: reading data mutiple times from camel's CachedOutputStream

2013-02-04 Thread Aki Yoshida
Hi Willem, thanks for the clarification. I thought one potential use case of this CachedOutputStream could be to allow the data to be read independently after cached. Have there not been any such use cases? If these use cases are considered not important, that will be okay too. The background to

Re: trying to understand cxf dataformats, and how to add a soapheader to cxf proxied webservice

2013-02-04 Thread Nico Mommaerts
Thanks Willem for the answer, I'll see if that gets me any further. I am using Camel 2.10.3 for the record. All I want to do is add some elements to an empty SOAP header. On Mon, Feb 4, 2013 at 4:02 AM, Willem jiang wrote: > Hi , > > Please see my comments in the below mail. > > -- > Willem Jian

Re: "Dynamic" data format in route

2013-02-04 Thread Lars-Erik Helander
Ok, thanks for the info Skickat från min iPhone 4 feb 2013 kl. 09:19 skrev Claus Ibsen : > On Sun, Feb 3, 2013 at 4:17 PM, helander wrote: >> I have a route that creates Soap requests/responses using camel-soap. >> >> The route should handle arbitrary soap services which means that I can not >

Re: Event Driven Use Case

2013-02-04 Thread Pontus Ullgren
Hello Rakesh, I would as you describe use the claimcheck EIP however I would not create a separate seda queue for each request. Here is a break down how I would do it. Route A: 0. Make what you do before the call 1. Serialize the exchange just before making the service call and save it in DB wit

Re: "Dynamic" data format in route

2013-02-04 Thread Claus Ibsen
On Sun, Feb 3, 2013 at 4:17 PM, helander wrote: > I have a route that creates Soap requests/responses using camel-soap. > > The route should handle arbitrary soap services which means that I can not > define the "dataFormat" when the route is built. As of now, I create the > "dataFormat" in a proc

Re: Spring bean injection best practice

2013-02-04 Thread Diether
Taariq Levack wrote > I don't know about best practices, often depends on use cases, but Camel > will also cache the result of the registry lookup, if the bean is a > singleton.[1] > For instance you may not want to autowire all these services into your > router, or even know which ones to autowire