Add support for shared use of SharedJms (basically a bug fix)