Access to message properties when publishing and subscribing