I’m doing some work with SQL service broker interface, I have a service associated with one queue and it contains only one method, the problem is when I receive the Message if I issue transaction.Rollback() the message disappear from the queue which I think shouldn’t happen. Here is the method:
[BrokerMethod("MySBResponseMessage")]
public void ProcessRequestMessage(Message ReceivedMessage, SqlConnection conn, SqlTransaction trans)
{
trans.Rollback();
}
and here is the service instance:
service.Run(false, conn, null);
Thanks
mhashim
Everything should work..
Have you correctly implemented service class? And calling base class in constructor? like: