AMQ-9162 Fix WS transport start via JMX after it was closed.
As it was discussed in the ticket, the issue exists only in 5.x versions, hence the PR is only to the 5.18.x branch.
Also added a test that reproduces the issue without the fix.
The err log file should obviously not be part of this PR.
hs_err_pid*.logshould not be part of this PR. Please remove it.
sorry for that, removed
@cshannon I did a new pass (including OSGi) and this looks good to me. Do you mind to take a new look and maybe remove your -1 ?
@jbonofre should this be re-targeted to activemq-5.19.x?
@mattrpav yes, that makes sense to include the fix in 5.19.x as well.