Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BROWSE_NEXT 1

Status
Not open for further replies.

pmbtech

Programmer
Nov 24, 2003
47
US
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?
 
1) It will read the next available message. If you have the message locked by program 2 then it is not available to program 1. Syncpointing essentially locks the message.

2) No it shouldn't be an issue
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top