" />
开发者

NServiceBus - using DBSubscriptionStorageConfig, but SQl server subscription table doesn't show any record

开发者 https://www.devze.com 2023-02-09 13:48 出处:网络
After adding section for SQL Database to handle subscriptions, My subscriber config looks like this ;initial catalog=NServiceBus;Integrated Security=SSPI\"/>

After adding section for SQL Database to handle subscriptions, My subscriber config looks like this

;initial catalog=NServiceBus;Integrated Security=SSPI"/>

I changed the endpoint class as follows

class EndpointConfig : IConfigureThisEndpoint, AsA_Server , IWantCustomInitialization
{
    public void Init()
    {
        NServiceBus.Configure.With()
            .Log4Net()
            .DefaultBuilder()
            .XmlSerializer()
            .UnicastBus()
            .ImpersonateSender(false)
            .DBSubcriptionStorage();
    }
}

When I fire up the application, where subscribers au开发者_如何学编程tomatically subscribe, I don't see any entries in the subscription DB. Also I don't see any error reported by the application... Anything I am missing in the config file...

Appreciate any help...


When using the builtin roles like As_aServer the role config takes precedence. So in your case the db sub.storage will only be used if you use As_aPublisher + run in the "production" profile.

0

精彩评论

暂无评论...
验证码 换一张
取 消