-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMQ-9162 Fix WS transport start via JMX after it was closed. #1370
base: activemq-5.18.x
Are you sure you want to change the base?
AMQ-9162 Fix WS transport start via JMX after it was closed. #1370
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The err log file should obviously not be part of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hs_err_pid*.log
should not be part of this PR. Please remove it.
@@ -96,7 +96,13 @@ protected void doStart() throws Exception { | |||
|
|||
contextHandler.setAttribute("acceptListener", getAcceptListener()); | |||
|
|||
server.start(); | |||
ClassLoader original = Thread.currentThread().getContextClassLoader(); | |||
Thread.currentThread().setContextClassLoader(WSTransportServer.class.getClassLoader()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be problematic in OSGi/Karaf generally speaking. In this specific it should be ok as the WSTransportServer
is in the activemq-osgi
bundle.
17ff563
to
016f3e2
Compare
sorry for that, removed |
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.