singhsa
singhsa

Reputation: 1

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

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 automatically 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...

Upvotes: 0

Views: 963

Answers (1)

Andreas Öhlund
Andreas Öhlund

Reputation: 5273

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.

Upvotes: 2

Related Questions