You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2011/05/26 22:42:47 UTC
[jira] [Created] (AMQ-3337) Add MBean to view Producers that are
active on the Broker
Add MBean to view Producers that are active on the Broker
---------------------------------------------------------
Key: AMQ-3337
URL: https://issues.apache.org/jira/browse/AMQ-3337
Project: ActiveMQ
Issue Type: Improvement
Components: JMX
Affects Versions: 5.5.0
Reporter: Timothy Bish
Assignee: Timothy Bish
Priority: Minor
Fix For: 5.6.0
Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQ-3337) Add MBean to view Producers that are
active on the Broker
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved AMQ-3337.
-------------------------------
Resolution: Fixed
Fixed now in trunk.
> Add MBean to view Producers that are active on the Broker
> ---------------------------------------------------------
>
> Key: AMQ-3337
> URL: https://issues.apache.org/jira/browse/AMQ-3337
> Project: ActiveMQ
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.5.0
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Priority: Minor
> Labels: JMX
> Fix For: 5.6.0
>
>
> Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (AMQ-3337) Add MBean to view
Producers that are active on the Broker
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045672#comment-13045672 ]
Timothy Bish edited comment on AMQ-3337 at 6/7/11 10:25 PM:
------------------------------------------------------------
I added some initial work to expose all the Dynamic Destination Producers via the broker view.
was (Author: tabish121):
I added some initial work to expose all the Dynamic Destination Producers view the broker view.
> Add MBean to view Producers that are active on the Broker
> ---------------------------------------------------------
>
> Key: AMQ-3337
> URL: https://issues.apache.org/jira/browse/AMQ-3337
> Project: ActiveMQ
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.5.0
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Priority: Minor
> Labels: JMX
> Fix For: 5.6.0
>
>
> Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3337) Add MBean to view Producers that are
active on the Broker
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045672#comment-13045672 ]
Timothy Bish commented on AMQ-3337:
-----------------------------------
I added some initial work to expose all the Dynamic Destination Producers view the broker view.
> Add MBean to view Producers that are active on the Broker
> ---------------------------------------------------------
>
> Key: AMQ-3337
> URL: https://issues.apache.org/jira/browse/AMQ-3337
> Project: ActiveMQ
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.5.0
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Priority: Minor
> Labels: JMX
> Fix For: 5.6.0
>
>
> Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQ-3337) Add MBean to view Producers that are
active on the Broker
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved AMQ-3337.
-------------------------------
Resolution: Fixed
Updates added in trunk.
> Add MBean to view Producers that are active on the Broker
> ---------------------------------------------------------
>
> Key: AMQ-3337
> URL: https://issues.apache.org/jira/browse/AMQ-3337
> Project: ActiveMQ
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.5.0
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Priority: Minor
> Labels: JMX
> Fix For: 5.6.0
>
>
> Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (AMQ-3337) Add MBean to view Producers that are
active on the Broker
Posted by "james strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
james strachan reopened AMQ-3337:
---------------------------------
It would rock if we could also create a ProducerViewMBean in JMX for all producers, even if they are not created with a default destination.
e.g. in camel-jms the code tends to create empty producers, then send each message to a specific destination. Usually its the same one every time; its just a code convenience to not hard wire the producer with a specific Destination. The JmsTemplate is similar in Spring I think.
I wonder if by default we could register the ProducerViewMBean with the first destination that its used to send to? Or register the ProducerViewMBean in a place where we can query all of them and find the ones who last sent to a specific destination?
We should avoid having to keep registering or moving the MBean for sure; so either we register it at the first send, or we register it in some 'generic producer' place, then update its destination property value on each send?
We could then have a helper method on the DestinationMBeanView or something to query all of these 'dynamic producers' to find which ones sent last time to a given queue/topic?
> Add MBean to view Producers that are active on the Broker
> ---------------------------------------------------------
>
> Key: AMQ-3337
> URL: https://issues.apache.org/jira/browse/AMQ-3337
> Project: ActiveMQ
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.5.0
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Priority: Minor
> Labels: JMX
> Fix For: 5.6.0
>
>
> Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (AMQ-3337) Add MBean to view Producers that are
active on the Broker
Posted by "Dejan Bosanac (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dejan Bosanac reopened AMQ-3337:
--------------------------------
This creates a problem when producer isn't registered for any particular destination
{code}java.lang.NullPointerException
at org.apache.activemq.broker.jmx.ManagedRegionBroker.createObjectName(ManagedRegionBroker.java:674)
at org.apache.activemq.broker.jmx.ManagedRegionBroker.addProducer(ManagedRegionBroker.java:271)
at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:93)
at org.apache.activemq.advisory.AdvisoryBroker.addProducer(AdvisoryBroker.java:133)
at org.apache.activemq.broker.CompositeDestinationBroker.addProducer(CompositeDestinationBroker.java:56)
at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:93)
at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:93)
at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:93)
at org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:93)
at org.apache.activemq.security.AuthorizationBroker.addProducer(AuthorizationBroker.java:168)
at org.apache.activemq.broker.MutableBrokerFilter.addProducer(MutableBrokerFilter.java:99)
at org.apache.activemq.broker.TransportConnection.processAddProducer(TransportConnection.java:507)
at org.apache.activemq.command.ProducerInfo.visit(ProducerInfo.java:105)
at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:306)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179)
at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)
at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69)
at org.apache.activemq.transport.vm.VMTransport.dispatch(VMTransport.java:121)
at org.apache.activemq.transport.vm.VMTransport.start(VMTransport.java:136)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.broker.TransportConnection.start(TransportConnection.java:896)
at org.apache.activemq.broker.TransportConnector$1$1.run(TransportConnector.java:217)
at java.lang.Thread.run(Thread.java:636){code}
> Add MBean to view Producers that are active on the Broker
> ---------------------------------------------------------
>
> Key: AMQ-3337
> URL: https://issues.apache.org/jira/browse/AMQ-3337
> Project: ActiveMQ
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.5.0
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Priority: Minor
> Labels: JMX
> Fix For: 5.6.0
>
>
> Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQ-3337) Add MBean to view Producers that are
active on the Broker
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved AMQ-3337.
-------------------------------
Resolution: Fixed
Solution implemented in trunk.
> Add MBean to view Producers that are active on the Broker
> ---------------------------------------------------------
>
> Key: AMQ-3337
> URL: https://issues.apache.org/jira/browse/AMQ-3337
> Project: ActiveMQ
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.5.0
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Priority: Minor
> Labels: JMX
> Fix For: 5.6.0
>
>
> Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3337) Add MBean to view Producers that are
active on the Broker
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045400#comment-13045400 ]
Timothy Bish commented on AMQ-3337:
-----------------------------------
I've been thinking about adding this sort of thing, hoping to take a look at it today and see what I can come up with.
> Add MBean to view Producers that are active on the Broker
> ---------------------------------------------------------
>
> Key: AMQ-3337
> URL: https://issues.apache.org/jira/browse/AMQ-3337
> Project: ActiveMQ
> Issue Type: Improvement
> Components: JMX
> Affects Versions: 5.5.0
> Reporter: Timothy Bish
> Assignee: Timothy Bish
> Priority: Minor
> Labels: JMX
> Fix For: 5.6.0
>
>
> Add an MBean and methods in the BrokerViewMBean to get information on Producers that are currently active on Destinations on the Broker.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira