Change jms serializer configuration.