Phoenix
Phoenix

Reputation: 8933

spring jms message creation

If I have assigned a message creator in my listener container which parses out the xml coming out of the queue and creates an equivalent java object for it does, spring jms guarantee this operation is thread safe ?

Upvotes: 0

Views: 218

Answers (2)

Anders R. Bystrup
Anders R. Bystrup

Reputation: 16080

Well, that depends... The Spring JMSTemplate is guaranteed to be thread safe as I recall, but the answer really boils to down to your implementation.

Cheers,

Upvotes: 0

Wins
Wins

Reputation: 3450

Spring JMS guarantee that the code calling message creator is thread safe, and it also expect the implementation of message creator to be thread safe too. But whether the overall flow is thread safe or not, really depends on how you write the message creator.

Upvotes: 1

Related Questions