Make use of remote port in Connection MBeanNames optional, useful when
ephemeral range cycles quickly
-----------------------------------------------------------------------------------------------------
Key: AMQ-3438
URL: https://issues.apache.org/jira/browse/AMQ-3438
Project: ActiveMQ
Issue Type: Improvement
Components: JMX
Affects Versions: 5.5.0
Reporter: Gary Tully
Assignee: Gary Tully
Fix For: 5.6.0
With fast connection close/creation (like stomp) the client side ephemeral port
range can result in duplicate mbean names when close is async. Potential of
failed mbean registration due to port reuse.
{code}DEBUG ManagedTransportConnection - Failure reason:
javax.management.InstanceAlreadyExistsException:
org.apache.activemq:BrokerName=XXXXXX,Type=Connection,ConnectorName=stomp,ViewType=address,Name=/X.X.X.X_52170{code}
Make the registration of an address type mbean configurable so that this case
can be avoided. In the main, it is handy to see the remote address in the mbean
name, so the default should be to use the remote port. Just the client Id
(which default to the connection id, will be used in the mbean name) when use
of remote port is not allowed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira