Issue Details (XML | Word | Printable)

Key: AMQ-702
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Adrian Co
Reporter: Jason Dillon
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ActiveMQ

`bstat --help` should display something useful

Created: 02/May/06 01:04 AM   Updated: 13/Jun/06 03:35 AM
Return to search
Component/s: None
Affects Version/s: 4.0 RC3
Fix Version/s: 4.0.1, 4.1.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works AMQ702.patch 2006-06-13 03:35 AM Adrian Co 2 kB


 Description  « Hide
`bstat --help` should display something useful. Right now using a non-standard connectorPort for the managementContext I get this:
jason@Sanity:...bator-activemq-4.0-RC3/bin>./bstat --help
ACTIVEMQ_HOME: /Users/jason/ws/paybytouch/ea/activemq/node1/incubator-activemq-4.0-RC3
ERROR: java.lang.RuntimeException: Failed to execute query task. Reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 
        java.net.ConnectException: Connection refused]
ERROR: java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 
        java.net.ConnectException: Connection refused]

`bstat localhost --help` works, showing that this is really calling `query`. Anyways, not very helpful when the JMX URL is changed from the default.



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Hiram Chirino added a comment - 12/Jun/06 08:17 PM
Adrian,

Do you known when you will get around to fixing this?


Adrian Co added a comment - 13/Jun/06 03:34 AM
Done. Added fix to 4.0.1 and trunk. Sorry, it took a awhile.

Adrian Co added a comment - 13/Jun/06 03:35 AM
Patch for trunk version attached.