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

Last Will message support #177

Open
glassfishrobot opened this issue Apr 25, 2016 · 3 comments
Open

Last Will message support #177

glassfishrobot opened this issue Apr 25, 2016 · 3 comments

Comments

@glassfishrobot
Copy link

MQTTv3 has a "Last Will" feature that JMS users would also benefit from. A developer registers a "Last Will" message when connecting to the server and when the connection is disconnected (intentionally, or unintentionally) the broker delivers the Last Will message to a destination that is defined during the session setup. This allows application developers and administrators to implement automated handling of error conditions without the need for a number of 3rd party or provider-specific tools.

The one improvement on the MQTT implementation would be to support a closing of the session without delivering the Last Will message, so you could support a scenario where the Last Will message is only delivered for unplanned disconnects.

API additions:

JMSContext.createLastWill(Destination dest, Message msg)
JMSContext.close(boolean doNotDeliverLastWill) // default to true
@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by mattrpav

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JMS_SPEC-177

@glassfishrobot
Copy link
Author

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

No branches or pull requests

1 participant