JMX Management Console fails to connect to 0.5 and below brokers if run in a Java5 VM

Details

Description

The management console cant connect to 0.5 or below if it is run on a Java5 VM

This is due to a query made when identifying the management API version used by the broker being connected to. The ObjectName used in this query contains a pattern in order to prevent running into the security checks around usage of the precise name when connecting as a non-admin user. Unfortunately, the query pattern used does not match the Java5 definition of valid ObjectName patterns and was only supported from the official introduction of Java6 in 2006. As the query is string based this was not detected by compile time checks.

The query should be updated to perform the failing process in a Java5 compatible manner.