Phoenix
Phoenix

Reputation: 8923

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: 217

Answers (2)

Anders R. Bystrup
Anders R. Bystrup

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

Wins
Wins

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

Related Questions