Added exec functionality

I added some code to support the exec function of Jolokia, so JMS operations can be executed as well. I ended up needing this with integration with Jolokia against HornetQ. Could be useful for many others.