Skip to content
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

Open
wants to merge 1 commit into
base: activemq-5.18.x
Choose a base branch
from

Conversation

Nikita-Shupletsov
Copy link

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.

Copy link
Contributor

@cshannon cshannon left a 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.

Copy link
Member

@jbonofre jbonofre left a 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());
Copy link
Member

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.

@Nikita-Shupletsov
Copy link
Author

The err log file should obviously not be part of this PR.

hs_err_pid*.log should not be part of this PR. Please remove it.

sorry for that, removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants