Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E4496200D12 for ; Sat, 7 Oct 2017 17:12:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D95611609D3; Sat, 7 Oct 2017 15:12:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 28D941609B8 for ; Sat, 7 Oct 2017 17:12:27 +0200 (CEST) Received: (qmail 88813 invoked by uid 500); 7 Oct 2017 15:12:26 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 88800 invoked by uid 99); 7 Oct 2017 15:12:26 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Oct 2017 15:12:26 +0000 Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 386BA1A012B for ; Sat, 7 Oct 2017 15:12:24 +0000 (UTC) Received: by mail-oi0-f48.google.com with SMTP id v9so21539933oif.13 for ; Sat, 07 Oct 2017 08:12:24 -0700 (PDT) X-Gm-Message-State: AMCzsaWwPinD4JSxlH7FQHiEuUH9XBIFxfsN7bdLO7IqZvga2Do+zMVz OiTKRCoSfEthL6evHVgul+HZqGMxPt5cJErb0Io= X-Google-Smtp-Source: AOwi7QCwv/p5pqX/kAK7PuMP1oreEEDEPc6qAdSNG3SK2RgfNSjqX+mAHtSe7zsHLLEa/q/AVSGt2GGWQsFPY1P5XPA= X-Received: by 10.157.43.36 with SMTP id o33mr3081532otb.456.1507389143457; Sat, 07 Oct 2017 08:12:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.137.215 with HTTP; Sat, 7 Oct 2017 08:12:22 -0700 (PDT) From: "Alex O'Ree" Date: Sat, 7 Oct 2017 11:12:22 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Starting up Qpid for integration testing with JMX listener To: users@qpid.apache.org Content-Type: text/plain; charset="UTF-8" archived-at: Sat, 07 Oct 2017 15:12:28 -0000 Hello qpid community. I have a product that integrates with Qpid and have happily been running integration tests with it without much of a fuss. In the past, I've written to this mailing list on how to attach qpid's java server as a maven dependency and start it up programmatically in a unit test, then destroy it when the tests is complete. This is working as expected. I now am trying to get the JMX points of Qpid up and running using the same mechanism (programmatically starting qpid during a unit test). I'm currently starting qpid using the following. org.apache.qpid.server.Broker broker2 = new Broker(); BrokerOptions options = new BrokerOptions(); options.setOverwriteConfigurationStore(true); //options.setManagementModeHttpPortOverride(9090); //options.setManagementModeJmxPortOverride(9099); //options.setManagementMode(false); options.setStartupLoggedToSystemOut(true); String file=new File(".").getAbsolutePath() + File.separator + "config.json"; options.setConfigurationStoreLocation(file); broker2.startup(options); if I set options.setManagementMode(true); qpid doesn't appear to accept connections (not sure why) if i uncomment --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org