If you want to modify behaviour on the server
you need to change the JMS server.
This isn't very portable.
It fairly easy with JBossMQ, you can insert your
own interceptor into the chain defined in jbossmq-service.xml
to perform whatever processing you require.
I'm experiencing the same problem. Could you be so kind and post a link to a documentation on how to configure the interceptor chain?