copy of Exchange during Multicast

2012-06-14 Thread kenhans
according to http://camel.apache.org/multicast.html http://camel.apache.org/multicast.html , multicast will copy the source Exchange and multicast each copy. I.e. changes done to the Exchange remains local to the multicast recipient. Is there a way to make changes done to the header visible in fur

Re: Can I use CAMEL with MuleESB?

2012-06-14 Thread Henryk Konsek
> But I don't find how to use together CAMEL in MuleESB. Camel is a routing engine used by ServiceMix ESB [1]. If you want to use Camel efficiently, you probably want to deploy it on ServiceMix, not on other ESB. I suggest you to decide whether you want to use ServiceMix+Camel or MuleESB. Mixing

Re: XPath namespaces in Spring DSL?

2012-06-14 Thread Andreas A.
Claus can you provide an example of the @Xpath-annotation where a namespace is specified? I have this issue https://issues.apache.org/jira/browse/CAMEL-3155 and I believe that Ashwin's and your answer in this thread should solve the problem. I'm using Camel 2.4.0 w. Spring DSL and tried Ashwin's

Re: copy of Exchange during Multicast

2012-06-14 Thread Henryk Konsek
Hi, > Is there a way to make changes done to the > header visible in further processing? Yes. Actually modifications to the headers of the exchanged copied by multicast are available in the aggregator. In the example below GroupedExchangeAggregationStrategy will aggregate two exchanges copied by

Re: copy of Exchange during Multicast

2012-06-14 Thread Henryk Konsek
> And each of the aggregated messages > will got another header set on it (HEADER1 and HEADER2 respectively). I meant KEY1 and KEY2 :) . -- Henryk Konsek http://henryk-konsek.blogspot.com

Need help in java.net.ConnectException: Connection refused

2012-06-14 Thread vargjohn
Hi All, I have an application which has a camel server running and listening to activemq server at port number 61616. When the camel server is running, the activemq server should also be running at the same time to listen to the messages. When the activemq is not started i am getting the below e

Re: XPath namespaces in Spring DSL?

2012-06-14 Thread Claus Ibsen
On Thu, Jun 14, 2012 at 1:21 PM, Andreas A. wrote: > Claus can you provide an example of the @Xpath-annotation where a namespace > is specified? > > Camel in Action book, chapter 4, section 4.5.4. And the Camel docs as well, see http://camel.apache.org/xpath.html eg a tip is to just type @xpath

Re: XPath namespaces in Spring DSL?

2012-06-14 Thread Andreas A.
There is no example of this on the website as far as I can see, but thanks for the pointer to the section in the book. I still think there is a problem when using a . I haven't tried newer versions though. Also - does Ashwins example produce the same result as this (only in Spring DSL)? https://sv

Re: XPath namespaces in Spring DSL?

2012-06-14 Thread Claus Ibsen
The book has an example and the source code is here http://code.google.com/p/camelinaction/source/browse/trunk/chapter4/bean/src/main/java/camelinaction/XmlOrderNamespaceService.java On Thu, Jun 14, 2012 at 3:35 PM, Andreas A. wrote: > There is no example of this on the website as far as I can s

CXFRS URL Matrix Parameters seemingly stripped away

2012-06-14 Thread desysemia
This is my first time posting here, so a big hello from me! Let me start off by stating I'm quite new to Camel and CXF so the issue I'm seeing might well just be my own doing. I'm currently running FuseESB/ServiceMix 3.6/4.4.1 including Camel version 2.8.0. The short version: is that the PathSe

Re: CXFRS URL Matrix Parameters seemingly stripped away

2012-06-14 Thread Sergey Beryozkin
Hi On 14/06/12 16:59, desysemia wrote: This is my first time posting here, so a big hello from me! Let me start off by stating I'm quite new to Camel and CXF so the issue I'm seeing might well just be my own doing. I'm currently running FuseESB/ServiceMix 3.6/4.4.1 including Camel version 2.8.0

Re: Camel Component - Consumer Threading Question

2012-06-14 Thread gilboy
Thanks again 1 final question on this. If an exception occurs in the run method of the consumer, I want the endpoint, producer and consumer to be re-started. I was thinking of handling this as follows: class CustomConsumer extends DefaultConsumer implements Runnable{ .. public void run(){

Re: Need help in java.net.ConnectException: Connection refused

2012-06-14 Thread Babak Vahdat
Hi Maybe this could help: http://camel.apache.org/exception-clause.html#ExceptionClause-Handlingandsendingafixedresponsebacktotheclient Babak -- View this message in context: http://camel.465427.n5.nabble.com/Need-help-in-java-net-ConnectException-Connection-refused-tp5714476p5714490.html Sent

Re: dynamic property keys

2012-06-14 Thread paramjyotsingh
Thanks Claus It works ... -- View this message in context: http://camel.465427.n5.nabble.com/dynamic-property-keys-tp5714449p5714488.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Why is this not possible with the twitter component in Camel 2.10 ?

2012-06-14 Thread Bruno Borges
It's not difficult to let the SearchConsumer endpoint work as an Event-driven too. I'm going to work on this on a few weeks, but of course you can code your own if you are in a hurry :-) *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Sat, Jun 2, 2012 at 6:06 PM, Christian Müller < chri

Re: Why is this not possible with the twitter component in Camel 2.10 ?

2012-06-14 Thread Bruno Borges
Claus, what is the scheduled date for 2.10 to be released? *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Thu, Jun 14, 2012 at 3:31 PM, Bruno Borges wrote: > It's not difficult to let the SearchConsumer endpoint work as an > Event-driven too. > > I'm going to work on this on a few wee

URI attribute

2012-06-14 Thread swwyatt
I have a route similar to the one below. In the from uri, I am thinking that I should have used a ref attribute instead of a uri attribute. It seems to work, but is this ok? -- View this message in context: http://camel.465427.n5.nabble.com/URI-attribute-tp5714496.html

Re: URI attribute

2012-06-14 Thread Claus Ibsen
On Thu, Jun 14, 2012 at 8:33 PM, swwyatt wrote: > I have a route similar to the one below. In the from uri, I am thinking > that > I should have used a ref attribute instead of a uri attribute. It seems to > work, but is this ok? > > > > > > > > > Using uri="import" works because you use t

Re: Camel Component - Consumer Threading Question

2012-06-14 Thread Claus Ibsen
Hi Read this FAQ how to stop a running route http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html eg you need to spin off a new thread to do this, as that would be the cleanest way. On Thu, Jun 14, 2012 at 6:47 PM, gilboy wrote: > Thanks again > > 1 final question on this. If an e

Re: Why is this not possible with the twitter component in Camel 2.10 ?

2012-06-14 Thread Claus Ibsen
On Thu, Jun 14, 2012 at 8:33 PM, Bruno Borges wrote: > Claus, what is the scheduled date for 2.10 to be released? > > Soon, we want to release it this month. > > *Bruno Borges* > (21) 7672-7099 > *www.brunoborges.com* > > > > On Thu, Jun 14, 2012 at 3:31 PM, Bruno Borges >wrote: > > > It's not

Re: One Camel Context with several XMLs

2012-06-14 Thread Claus Ibsen
On Thu, Jun 14, 2012 at 8:22 PM, Bruno Borges wrote: > Is it possible to break a Camel Context accross several XML files? > > See this page about using routeContext http://camel.apache.org/configuring-camel.html > *Bruno Borges* > (21) 7672-7099 > *www.brunoborges.com* > -- Claus Ibsen

Re: One Camel Context with several XMLs

2012-06-14 Thread Bruno Borges
sweet, just what I needed... thanks claus It seems the docs are a little fuzzy. I spent like 10 min looking around but couldn't find this page. *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Thu, Jun 14, 2012 at 3:40 PM, Claus Ibsen wrote: > On Thu, Jun 14, 2012 at 8:22 PM, Bruno Bor

Re: Why is this not possible with the twitter component in Camel 2.10 ?

2012-06-14 Thread Bruno Borges
It seems I am http://www.youtube.com/watch?v=a01QQZyl-_I :-D *Bruno Borges* (21) 7672-7099 *www.brunoborges.com* On Thu, Jun 14, 2012 at 3:39 PM, Claus Ibsen wrote: > On Thu, Jun 14, 2012 at 8:33 PM, Bruno Borges >wrote: > > > Claus, what is the scheduled date for 2.10 to be released? > > >

Re: How to set header as RFH1 for ibm mq

2012-06-14 Thread Magnus Palmér
(Not really a Camel specific question.) What version is the WMQ queuemanager? What version is your WMQ jar-files? Pretty sure you can get WMQ V7 and JMS to work with RFH, you might need to use the WMQ native Java API instead. Are you using WMB V6 or V6.1 brokers still or why do you need a RFH?

Re: recipient list sending to multiple Camel Processors

2012-06-14 Thread Vincent Nonnenmacher
you means this is not what you're looking for ? On Thu, Jun 14, 2012 at 9:08 PM, Tyler Durvik wrote: > Is it possible to send a message to a group of Camel processors using > a recipient list ? I have looked through the documentation and cannot > f

Re: recipient list sending to multiple Camel Processors

2012-06-14 Thread Tyler Durvik
Yes. I want to dynamically build recipient list, but all the destinations will be camel processor. I see examples where you parse a header using a comma (","), or a java.util.List of strings but not processors. I am trying to build the list dynamically inside a bean. On Thu, Jun 14, 2012 at

Re: recipient list sending to multiple Camel Processors

2012-06-14 Thread Vincent Nonnenmacher
you can perhaps use this processor in your route to compute the recipientList yourself, add it in the header them proceed with the recipient-list pattern On Thu, Jun 14, 2012 at 9:58 PM, Tyler Durvik wrote: > Yes. I want to dynamically build recipient list, but all the > destinations will be

Re: One Camel Context with several XMLs

2012-06-14 Thread Vincent Nonnenmacher
a good investment is to buy the 'Camel in Action' book its very well written and enligthening even for seasoned Camel developers! On Thu, Jun 14, 2012 at 8:44 PM, Bruno Borges wrote: > sweet, just what I needed... thanks claus > > It seems the docs are a little fuzzy. I spent like 10 min looking

Re: HTTP4 component cannot resolve DNS

2012-06-14 Thread Christian Müller
Camel-http4 leverages on Apache commons-httpclient: http://hc.apache.org/httpcomponents-client-ga/index.html Could you please try whether do you have the same issue by using it? Best, Christian On Wed, Jun 13, 2012 at 4:59 PM, Diyko wrote: > I have HTTP4 endpoint which works fine for all addres

Re: recipient list sending to multiple Camel Processors

2012-06-14 Thread Christian Schneider
The recipientlist dsl element only can work with a list of endpoint uris. How else should it address them. How should that work with processors? When you build the processors in your bean how do you model them ? As List or similar? In this case why don´t you simply call each processor in the be

Re: CXFRS URL Matrix Parameters seemingly stripped away

2012-06-14 Thread Willem Jiang
Hi, As Sergey just said, the metrix parameters are got from the request URI which means it has nothing to do with the server address that your camel-cxfrs consumer is using. Even you define the server address with the values option, if the client request doesn't has these values you will not g

Re: Need help in java.net.ConnectException: Connection refused

2012-06-14 Thread Willem Jiang
It looks like the exception is throw before it is ready to consume the message. I doubt the ErrorHandler can do this work. Maybe you should wrap the jms connector to catch this kind of error. On 6/14/12 5:44 PM, vargjohn wrote: Hi All, I have an application which has a camel server running and

Re: One Camel Context with several XMLs

2012-06-14 Thread Claus Ibsen
On Thu, Jun 14, 2012 at 8:44 PM, Bruno Borges wrote: > sweet, just what I needed... thanks claus > > It seems the docs are a little fuzzy. I spent like 10 min looking around > but couldn't find this page. > > We sure can use help on the docs. http://camel.apache.org/contributing.html For example

smtps unknown parameter sslContextParameters error

2012-06-14 Thread paramjyotsingh
Hi, I am trying to use smtps to send email. notification and getting following error. Unknown parameters=[{sslContextParameters=#sslContextParameters}] my configuration is:- Am I doing something wrong, i got this parameter name from cam

subscribe

2012-06-14 Thread Zerdo

Re: recipient list sending to multiple Camel Processors

2012-06-14 Thread Claus Ibsen
On Thu, Jun 14, 2012 at 9:58 PM, Tyler Durvik wrote: > Yes. I want to dynamically build recipient list, but all the > destinations will be camel processor. I see examples where you parse > a header using a comma (","), or a java.util.List of strings but not > processors. I am trying to build t

Re: smtps unknown parameter sslContextParameters error

2012-06-14 Thread Claus Ibsen
On Thu, Jun 14, 2012 at 11:15 PM, paramjyotsingh wrote: > Hi, > > I am trying to use smtps to send email. notification and getting following > error. > > Unknown parameters=[{sslContextParameters=#sslContextParameters}] > > my configuration is:- > > > > resource="

Re: Need help in java.net.ConnectException: Connection refused

2012-06-14 Thread vargjohn
Hi Babak, I am using below camel exception clause inside the camel route. onException(java.net.ConnectException.class).to("bean:localRouteHelper?method=handleException").end() but still i keep getting the below exception sent from camel server. WARNING: Could not refresh JMS Connection for dest

Re: Need help in java.net.ConnectException: Connection refused

2012-06-14 Thread Babak Vahdat
Ah now I see the problem. The onException clause of yours will not help at all as Camel does NOT see / get the java.net.ConnectException thrown here. I don't see any possible way of achieving what you're looking for! However in general there's a org.springframework.util.ErrorHandler which is so

Re: Need help in java.net.ConnectException: Connection refused

2012-06-14 Thread Babak Vahdat
Maybe this could be one possible way: Using plain Java Socket API write a bean which only does try to connect on localhost port 61616 inside your Camel route and rethrows the exception if java.net.ConnectException with the message "Connection refused" is thrown so that your onException clause get'