Is your already-running broker running in the same process as your client? Or are you trying to interact with a broker that's in a separate process? If the latter, I don't think what you're trying to do will work; you should see whether the JMX API (which will work with a separate process) will meet your needs.
Tim On May 14, 2016 10:59 PM, "akhil" <akh...@gmail.com> wrote: > Hi Tim , > > I am writing a simple java client to get the broker service instance of my > remote broker which is in dev environment. I have seen several examples > related to brokers service which they are starting up locally and using > that > local instance ..But in my case the brokers are already up and running and > would like to get that broker service instance of the dev broker. > > Here is the sample case : > // The below one is through factory > BrokerService remoteBroker = BrokerFactory.createBroker(new > URI("vm://brokername")); > > Where i am trying to get the region broker out of this remotebroker. I have > to have the proper broker service instance with all the instance variables > population with my remote broker uri then i am able to use the region > broker. > > Thanks, > Akhil. > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-can-i-get-Broker-Service-instance-of-the-remote-broker-tp4711891p4711945.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >