Glide
Glide

Reputation: 21245

Is JsonMessageConverter thread-safe?

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?

Upvotes: 0

Views: 131

Answers (1)

CupawnTae
CupawnTae

Reputation: 14580

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.

Upvotes: 1

Related Questions