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

Proposed heartbeat implementation #18

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jhberges
Copy link

This pull request also includes #13 (now closed)

The proposed implementation implements the STOMP 1.2 spec(http://stomp.github.io/stomp-specification-1.2.html#Heart-beating), and is configurable via the system property:

    -Dstompjms.heartbeat=X,Y

It may be debated if this should be configurable via the ConnectionFactory (and in which form: as a string or separate values).

Also changed the ActiveMQ integration test to use annotations in order to disable the AMQ-4493 proof (#13).

The proposed implementation has been tested using a camel app as client to ActiveMQ 5.8.0, using stomp-jms.
Restarting broker and client works as a charm, and stopping the heart-beats in the client (via debugger) makes the broker discard the client.

BR. Jan-Helge

Configurable via System property "stompjms.heartbeat"
Configurable via system property stompjms.heartbeat
Conflicts:
	stompjms-client/src/main/java/org/fusesource/stomp/jms/StompChannel.java
Test provided to proove bug in ActiveMQ's STOMP implementation disabled
Will always fail until fixed in ActiveMQ project.
@themerius themerius mentioned this pull request Jun 7, 2016
themerius added a commit to themerius/stompjms that referenced this pull request Jun 28, 2016
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.

None yet

1 participant