Lets say I have a sql server database with a table T. When a row in T changes I would like to receive a message via NServicBus (Publish/Subscribe).
I would simulate a sent message by using a trigger on T that inserts a message in the table polled by a NServiceBus subscriber (SqlServerTransport). In the message handler I would like to publish (forward) this message to another NServiceBus subscriber (MsmqTransport).
I've looked at the SqlBridge sample but it goes the other way around (msmq -> sql server). I can't figure out a way for the IAdcancedSatelite to receive from a sql server transport i.e. I seem to only to be able to create a IDequeueMessages of type MsmqDequeueStrategy in GetReceiverCustomization().
Is this even possible? If not, my options seems to be:
1) Use SqlServerTransport across the whole system. I would rather not do this.
2) Brigde the endpoints with some other means of communication (rpc call etc.). Maybe this can be done with a Gateway and bus.SendToSites?. I'm new to NServiceBus so I have not looked into gateways.
3) Something else? I've seen solutions using the sql server service broker. Our DBA does not like that.
Any advice is appreciated.