I have 2 threads reading a queue, each with it's own connection and they are both doing a browse_next, If the message is one for that thread it does a get under_cursor.
My question is if message 2 is removed from the queue by thread 2 before thread 1 browses it, will thread 1 throw an error or just browse to the next available message?
Also the gets are using a syncpoint so I can roll back if there is a problem processing the message, will that be a problem for either thread?
My question is if message 2 is removed from the queue by thread 2 before thread 1 browses it, will thread 1 throw an error or just browse to the next available message?
Also the gets are using a syncpoint so I can roll back if there is a problem processing the message, will that be a problem for either thread?