GitHub user mastanik opened a pull request:
https://github.com/apache/activemq-6/pull/182
Added possibility to intercept stomp frames
Initially I was trying to log all the incoming stomp frames from the client
on a server side, but could not find any easy way of doing this. This pr adds
possibility to intercept stomp frames via interceptor section in
activemq-configuration.xml.
Interceptor list was already passed as a parameter to StompProtocolManager
constructor, but was not used in any way. I decided to introduce new abstract
class which implements Interceptor interface as the simplest solution and then
invoke its intercept method like it is done with the regular interceptors.
Clients need to extend this class and put it under activemq class path,
just as a regular jms interceptor.
Looking forward to your comments, and feel free to reject it in case it
does not make any sense.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mastanik/activemq-6 master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-6/pull/182.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #182
----
commit 05b469589dc7fe5b4f9e58654437e3501b6bc2f9
Author: nberdikov <[email protected]>
Date: 2015-03-13T09:29:33Z
Added possibility to intercept stomp frames
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---