You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by leng_cn <xi...@gmail.com> on 2013/07/11 04:28:42 UTC

how can i get the connections from the broker

when i create a connection such as the flowing codeActiveMQConnectionFactory
fac = new ActiveMQConnectionFactory(						
GetConfig.getValue("brokerURL"));*connection *=
fac.createConnection();connection.setClientID(GetConfig.getValue("clientid"));in
another java class main methodhow can i get the above the connection????when
i use the flowing codeRemoteJMXBrokerFacade createConnector = new
RemoteJMXBrokerFacade(); System.setProperty("webconsole.jmx.url",
"service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi");
SystemPropertiesConfiguration configuration = new
SystemPropertiesConfiguration();
createConnector.setConfiguration(configuration); *ConnectionViewMBean *con =
null;try {con = createConnector.getConnection("bmpv6");if(con!=null &&
!con.isActive()) con.start();only get the ConnectionViewMBean not the
Connectionhow can i do???pls and thanks everybody



--
View this message in context: http://activemq.2283324.n4.nabble.com/how-can-i-get-the-connections-from-the-broker-tp4669112.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: how can i get the connections from the broker

Posted by Christian Posta <ch...@gmail.com>.
can't read that... please format it properly, or paste it into a github
gist or something..


On Wed, Jul 10, 2013 at 10:28 PM, leng_cn <xi...@gmail.com> wrote:

> when i create a connection such as the flowing
> codeActiveMQConnectionFactory
> fac = new ActiveMQConnectionFactory(
> GetConfig.getValue("brokerURL"));*connection *=
>
> fac.createConnection();connection.setClientID(GetConfig.getValue("clientid"));in
> another java class main methodhow can i get the above the
> connection????when
> i use the flowing codeRemoteJMXBrokerFacade createConnector = new
> RemoteJMXBrokerFacade(); System.setProperty("webconsole.jmx.url",
> "service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi");
> SystemPropertiesConfiguration configuration = new
> SystemPropertiesConfiguration();
> createConnector.setConfiguration(configuration); *ConnectionViewMBean *con
> =
> null;try {con = createConnector.getConnection("bmpv6");if(con!=null &&
> !con.isActive()) con.start();only get the ConnectionViewMBean not the
> Connectionhow can i do???pls and thanks everybody
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/how-can-i-get-the-connections-from-the-broker-tp4669112.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.




-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta