Re: Bug in component camel-snmp?

2018-01-09 Thread Ricardo Zanini
I've opened a JIRA [1] to follow up with this issue. [1] - https://issues.apache.org/jira/browse/CAMEL-12132 Zanini On Tue, Jan 9, 2018 at 10:52 AM, Ricardo Zanini wrote: > Hi Thomas! > > Nice that you could handle it. Do you mind sending a PR to improve the > component [1]? Although some tes

Re: zookeeper leader selection selects multiple leaders

2018-01-09 Thread Claus Ibsen
Yeah I think it does. Can you give it a try, and we can improve the docs. On Tue, Jan 9, 2018 at 4:47 PM, Dennis Holunder wrote: > thank you! > Does it support multiple zookeeper comma-separated URLs? The example > in docs uses just one localhost > > masterRoutePolicy.setZooKeeperUrl("host1:2181,

Re: zookeeper leader selection selects multiple leaders

2018-01-09 Thread Dennis Holunder
thank you! Does it support multiple zookeeper comma-separated URLs? The example in docs uses just one localhost masterRoutePolicy.setZooKeeperUrl("host1:2181,host2:2181,host3:2181"); 2018-01-09 16:25 GMT+01:00 Claus Ibsen-2 [via Camel] : > Yes check its doc page > https://github.com/apache/camel/

Re: zookeeper leader selection selects multiple leaders

2018-01-09 Thread Claus Ibsen
Yes check its doc page https://github.com/apache/camel/blob/master/components/camel-zookeeper-master/src/main/docs/zookeeper-master-component.adoc And its also covered in the CiA2 book in the clustering chapter. On Tue, Jan 9, 2018 at 1:38 PM, Dennis Holunder wrote: > Is there any documentation

Re: Bug in component camel-snmp?

2018-01-09 Thread Ricardo Zanini
Hi Thomas! Nice that you could handle it. Do you mind sending a PR to improve the component [1]? Although some tests needed to make sure this behavior remains the same with a single user scenario. [1] - https://github.com/apache/camel/blob/master/CONTRIBUTING.md Cheers! Zanini On Tue, Jan 9, 2

Re: zookeeper leader selection selects multiple leaders

2018-01-09 Thread Dennis Holunder
Is there any documentation or example usage of zookeeper-master component? 2018-01-09 13:17 GMT+01:00 Claus Ibsen-2 [via Camel] : > Try the zookeeper-master component - it should be better > > On Tue, Jan 9, 2018 at 12:55 PM, Dennis Holunder <[hidden email]> wrote: > >> Hello, >> >> I'm using zook

RE: Bug in component camel-snmp?

2018-01-09 Thread Schuster, Thomas
Hello Ricardo (sorry for the misspelling of your name in the last mail), The following change in the SnmpOIDPoller solves my exception and multiple servers with different credentials can be polled (for completeness I send the whole method): protected void doStart() throws Exception {

Re: Bug in component camel-snmp?

2018-01-09 Thread Ricardo Zanini
Hi Thomas! You're right. My intention was just to point out that duo to v3, other aspects of the SNMP camel component interaction may change. I couldn't find any tests with v3 [1], though. Maybe there's room for improvement or a bug in the code. Many thanks for your snippet, I'm going to run some

Re: zookeeper leader selection selects multiple leaders

2018-01-09 Thread Claus Ibsen
Try the zookeeper-master component - it should be better On Tue, Jan 9, 2018 at 12:55 PM, Dennis Holunder wrote: > Hello, > > I'm using zookeeper route policy for leader selection on 8 instances > of my route and get sometimes 2 leaders selected. What I'm doing wrong > here? > > String uri = "zoo

zookeeper leader selection selects multiple leaders

2018-01-09 Thread Dennis Holunder
Hello, I'm using zookeeper route policy for leader selection on 8 instances of my route and get sometimes 2 leaders selected. What I'm doing wrong here? String uri = "zookeeper:srv1:2181,srv2:2181,srv3:2181/myapp/myroute"; ZooKeeperRoutePolicy policy = new ZooKeeperRoutePolicy(uri, 1); policy.se

Re: Design: State Machine implementation in Apache Camel

2018-01-09 Thread Steve973
I wouldn't roll my own state machine in Camel or any other application, since that wheel has been invented already. Why use a table when you can utilize something like StatefulJ that will allow you to define states, transitions, etc? I would probably also leave your business logic outside of came

RE: Bug in component camel-snmp?

2018-01-09 Thread Schuster, Thomas
Hi Ricardi, thanks for your answer > SNMP v3 has some differences regarding the message model [1]. Maybe you'll > need to adjust your route / processing to it, take a look into this answer > [2]. > > [1] - http://www.snmp.com/products/techinfo/secmodels.shtml > [2] - > https://stackoverflow.com/

Design: State Machine implementation in Apache Camel

2018-01-09 Thread Imran Raza Khan
I design pseudo implementation of state machine in Apache camel like below, Please comment/suggest to improve design Table Contains State: (Would be populate in HashMap at start of Application) "STATE", "NEXT_STATE", "STATE_RESULT", "CamelRoute" 1 , 2 ,