Thanks again Justin! Aaron Steigerwald
-----Original Message----- From: Justin Bertram <jbert...@apache.org> Sent: Monday, May 9, 2022 2:30 PM To: users@activemq.apache.org Subject: Re: [EXTERNAL]:Re: Artemis client "get broker name" [CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.] ________________________________ FYI - I opened ARTEMIS-3822 [1] for this and sent a PR. Justin [1] https://issues.apache.org/jira/browse/ARTEMIS-3822 On Tue, May 3, 2022 at 8:47 PM Steigerwald, Aaron <asteigerw...@brandesassociates.com.invalid> wrote: > Thank you! > > Aaron Steigerwald > > -----Original Message----- > From: Justin Bertram <jbert...@apache.org> > Sent: Tuesday, May 3, 2022 9:06 PM > To: users@activemq.apache.org > Subject: Re: [EXTERNAL]:Re: Artemis client "get broker name" > > [CAUTION: This email originated from outside of the organization. Do > not click links or open attachments unless you recognize the sender > and know the content is safe.] ________________________________ > > > As noted, there currently is no way to get the name of the broker from > the management API. However, I created ARTEMIS-3813 [1] to get this > implemented. > > > Justin > > [1] https://issues.apache.org/jira/browse/ARTEMIS-3813 > > On Mon, May 2, 2022 at 10:45 PM Steigerwald, Aaron > <asteigerw...@brandesassociates.com.invalid> wrote: > > > Hello, > > > > Thank you for your reply. I'm looking for the <name> from broker.xml. > > Both the "nodeID" and "live" are listed in the JSON output of > > ActiveMQServerControl.listNetworkTopology(). "live" has been the > > broker.xml <name> in my testing. > > > > Thanks again, > > Aaron Steigerwald > > > > -----Original Message----- > > From: Justin Bertram <jbert...@apache.org> > > Sent: Monday, May 2, 2022 11:36 PM > > To: users@activemq.apache.org > > Subject: [EXTERNAL]:Re: Artemis client "get broker name" > > > > [CAUTION: This email originated from outside of the organization. Do > > not click links or open attachments unless you recognize the sender > > and know the content is safe.] ________________________________ > > > > > > Are you talking about the actual name of the broker that's > > configured via <name> in broker.xml or the node ID that's > > automatically generated and returned from listNetworkTopology()? If > > the latter you can use ActiveMQServerControl.getNodeID(). If the > > former, there's no management operation to get that. > > > > > > Justin > > > > On Mon, May 2, 2022 at 9:46 PM Steigerwald, Aaron > > <asteigerw...@brandesassociates.com.invalid> wrote: > > > > > Hello, > > > > > > Is there any way to get the Artemis broker name from an Artemis > > > core or JMS connection? I don't think you can get it through the > > > management > > API. > > > It's available in activeMQServerControl.listNetworkTopology() but > > > I'd like to also be able to get it from a non-clustered node. > > > > > > Thank you, > > > Aaron Steigerwald > > > > > >