I want to create org.springframework.amqp.support.converter.JsonMessageConverter
as a Singleton Spring bean and autowire it in my services. Is it thread-safe?
Is JsonMessageConverter thread-safe?
148 views Asked by Glide At
1
I want to create org.springframework.amqp.support.converter.JsonMessageConverter
as a Singleton Spring bean and autowire it in my services. Is it thread-safe?
Yes, it's threadsafe to use, assuming you use it in a threadsafe way. E.g. if you call
setJsonObjectMapper(...)
on it, it will affect all threads that use it.