Service Broker External Activator not functioning

Answered Service Broker External Activator not functioning

  • Tuesday, January 15, 2013 4:03 PM
     
     

    Hi,

    I have created an Audit.exe application. This application will poll the data from a table in DatabaseA to another table in DatabaseB. Audit.exe runs successfully on a ServerC.

    Now I install the Service Broker External Activator on ServerC. I have everything configured correctly for this windows service to activate the Audit.exe. There is no error return from the log but standard information message. Too bad no data is polling. Any idea what should be missing?

    Thanks,

    Kenny

All Replies

  • Tuesday, January 15, 2013 5:50 PM
     
     

    Hello Kenny,

    The External Activator will be activated when a message is send in the message queue; are there unhandled messages in the queue?


    Olaf Helper

    Blog Xing


  • Wednesday, January 16, 2013 1:44 AM
     
     
    Yes. there is message in the queue. The Audiit.exe has no problem to pick up the message. Just wondering why External Activator is not able to do so.
  • Wednesday, January 16, 2013 2:57 AM
     
      Has Code

    You might consider turning on verbose logging for troubleshooting.  Change the config file (C:\Program Files\Service Broker\External Activator\Config\EAService.config) to specify the following:

    <LogSettings>
     <LogFilter>
      <TraceFlag>All Levels</TraceFlag>
      <TraceFlag>All Modules</TraceFlag>
      <TraceFlag>All Entities</TraceFlag>
      <TraceFlag>Verbose</TraceFlag>
     </LogFilter>
    </LogSettings>
    
    See http://www.dbdelta.com/service-broker-external-activator-example for a full example.

    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Wednesday, January 16, 2013 4:31 AM
     
     

    I don't see any error messages from the EAService log.

    I try to write custom log in the Audit.exe but nothing is written out to my custom log file. I guess something is wrong when we use

    -- External Activation Event
    CREATE EVENT NOTIFICATION AUDIT_EVENT
     ON QUEUE AUDIT_MESSAGES -- When messages arrive in this Queue, the Event will be raised
     FOR QUEUE_ACTIVATION    -- The type of Event
     TO SERVICE 'EXTERNAL_ACTIVATION_SERVICE' , 'E836F849-DF5E-4A57-A85B-E40B34CEB430'
     --TO SERVICE 'EXTERNAL_ACTIVATION_SERVICE' , 'current database'
    GO

    The 'current database' is working fine but if using 'broker_instance_specifier', windows service doesn't trigger the Audit.exe.


    1/15/2013 11:21:12 PM ====== ================================================================================
    1/15/2013 11:21:12 PM ====== ================================================================================
    1/15/2013 11:21:12 PM INFO The External Activator service is starting.
    1/15/2013 11:21:12 PM INFO Initializing configuration manager ...
    1/15/2013 11:21:12 PM INFO Reloading configuration file C:\Program Files\Service Broker\External Activator\config\EAService.config ...
    1/15/2013 11:21:12 PM INFO Reloading configuration file completed
    1/15/2013 11:21:12 PM VERBOSE Running recovery using recovery log file C:\Program Files\Service Broker\External Activator\log\EARecovery.rlog ...
    1/15/2013 11:21:12 PM VERBOSE Running recovery completed
    1/15/2013 11:21:12 PM INFO Initializing configuration manager completed
    1/15/2013 11:21:12 PM VERBOSE Starting worker threads...
    1/15/2013 11:21:12 PM VERBOSE Worker threads are successfully started.
    1/15/2013 11:21:12 PM VERBOSE CM-NS-Thread is starting...
    1/15/2013 11:21:12 PM INFO The External Activator service is running.
    1/15/2013 11:21:12 PM VERBOSE Heartbeat-Thread is starting...

  • Wednesday, January 16, 2013 6:46 AM
     
     Answered
    It is working now after I corrected the permission.
    • Proposed As Answer by Dan GuzmanMVP Wednesday, January 16, 2013 1:48 PM
    • Marked As Answer by Iric WenModerator Wednesday, January 23, 2013 6:50 AM
    •  
  • Wednesday, January 23, 2013 6:52 AM
    Moderator
     
     

    Hi Kenny,

    Glad to hear the problem is resolved.

    Could you please provide the detail solutions since other people could meet the same problem in the feature?

    Thanks for your time!


    Iric Wen
    TechNet Community Support