Reputation: 8923
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: 217
Reputation: 16050
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
Reputation: 3460
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