Re: Migrate Apache Camel Endpoints

2013-11-03 Thread Claus Ibsen
Hi Sounds like you are talking about reliable messaging / clustering. This is what Apache ActiveMQ provides much better. For example if you take a look at Apache ServiceMix, which is an ESB, then ActiveMQ is the reliable messaging backbone of this ESB. And Camel is the integration glue that

Re: Migrate Apache Camel Endpoints

2013-11-03 Thread pmp.martins
I don't want to build a reliable messaging / clustering alternative. All I want is to be able to stop sending messages to a certain endpoint B, and replicate it in another machine in order to manage load or for some other reason. I merely use the LoadBalancer component with the failover construct

Re: Migrate Apache Camel Endpoints

2013-11-03 Thread Claus Ibsen
Build you own load balancing algorithm to select the last known good choice and then keep use that, and if that fail, then try another etc. The Camel LB allows to plugin custom algorithms. On Sun, Nov 3, 2013 at 4:50 PM, pmp.martins pmp.mart...@campus.fct.unl.pt wrote: I don't want to build a

Re: Migrate Apache Camel Endpoints

2013-11-03 Thread pmp.martins
@Claus: If I could give you kudos++ here I totally would. I did it in StackOverflow though, its not much but at least it is something. I really appreciate your help and effort. I will totally invest my time in doing that once I get the major problems I detail HERE

Re: Migrate Apache Camel Endpoints

2013-11-03 Thread Claus Ibsen
In fact the last known good algorithm would be useful to have out of the box. I logged a ticket https://issues.apache.org/jira/browse/CAMEL-6930 On Sun, Nov 3, 2013 at 5:19 PM, Claus Ibsen claus.ib...@gmail.com wrote: Build you own load balancing algorithm to select the last known good choice

Load balancing using Mina example with Java DSL

2013-11-03 Thread pmp.martins
So, recently I started learning Camel. As part of the process I decided to go through all the examples (listed HERE http://camel.apache.org/examples.html and available when you DOWNLOAD http://camel.apache.org/download.html the package with all the examples and docs) and to see what I could

Passing parameters to a direct / seda / vm endpoint

2013-11-03 Thread alapaka
G'day all; Is there a way to pass parameters (i.e. like a function call) to a direct / seda / vm consumer endpoint? Setting headers works, but I reckon it would be much cleaner and clearer if we could pass actual parameters as part of the call to the endpoint, either as part of the URI or as

Re: Passing parameters to a direct / seda / vm endpoint

2013-11-03 Thread Raul Kripalani
Hello, Thanks for your participation in users@camel! Even if we provided a way to set dynamic parameters as part of the URI – and have Camel channel those downstream from the producer to the consumer – how would the endpoints/processors sitting behind the SEDA / VM / Direct consumers acquire

how to check whether a routing of one message finished

2013-11-03 Thread CamelTyro
How to get the real node count of a router, I used the tracer function and get the number of nodes had been traced via TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes(); ListRouteNode list = traced.getNodes(); and the size of list is the node count traced. So if I can get

Re: how to check whether a routing of one message finished

2013-11-03 Thread Willem jiang
How about to try the onCompletion DSL ? [1]http://camel.apache.org/oncompletion.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)

How to Deploy new Camel Context with Hawtio

2013-11-03 Thread Max Bridgewater
Hi Gents, I understand this is not a Hawtio forum. Please indulge. Is there a way to use Hawtio to deploy new camel contexts into Camel? When I deploy Hawtio, I see that there is a default camel context running with two routes. How do I add another route? Or how do I deploy a completely different

Re: Load balancing using Mina example with Java DSL

2013-11-03 Thread Willem jiang
Hi, The magic is happened in the camel-context-loadbalancer.xml. The client is not tcp client, it is just a camel client which can send the request to direct:loadbalance endpoint. If you want to add third mina endpoint, you can modify the file of camel-context-loadbalancer.xml. -- Willem

cxf bus

2013-11-03 Thread Ernest Lu
hi, When remove a cxf route,camel will shut down the cxf bus,so the other cxf routes won't work. -- View this message in context: http://camel.465427.n5.nabble.com/cxf-bus-tp5742573.html Sent from the Camel - Users mailing list archive at Nabble.com.

Container-wide Exception Handling (OSGI)

2013-11-03 Thread Henrique Viecili
Hi guys, I would like to build a container-wide exception handler and would like to know what's the best option to go considering I'm running my routes in an OSGi environment (JBoss Fuse) deployed with Blueprint DSL. *Option 1.* I read about implementing an InterceptStrategy and expose it as a

Re: cxf bus

2013-11-03 Thread Willem jiang
What’s your camel route looks like? You may need to specify another CXF bus for other camel-cxf route to use. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com

Re: How to Deploy new Camel Context with Hawtio

2013-11-03 Thread James Strachan
To be able to add/update/remove camel contexts based on changes to the hawtio wiki, you either need to run a Fuse Fabric (which automatically adds/updates/removes any bundles running blueprint/spring XML in a container if its updated in the profile's wiki directory) or run a spring/blueprint

Re: cxf bus

2013-11-03 Thread Ernest Lu
thanks for your help For example I have two routes like this: from(cxf://address1).to(cxf:address2).routeId(route1) from(cxf://address3).to(cxf:address4).routeId(route2) if i remove the route1 camelContext.stopRoute(route1); camelContext.removeRoute(route1); the route2 will can not work. the