Building a Distributed Service Broker Application

  • Santhi Indukuri

    SSC Enthusiast

    Points: 191

    Comments posted here are about the content posted at http://www.sqlservercentral.com/columnists/sindukuri/2797.asp

  • Johan Bijnens

    SSC Guru

    Points: 134254

    Good article.

    Most articles only handle "local" SSB. That's the easy part !

    There are many pitfalls when going remote.

    I'll poste al litle script containing the dmv's,.. for SSB-problemsolving.

    Johan


    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt ?

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me[/url] :alien: but most of the time this is me :hehe:

  • Tim Chapman-218780

    Ten Centuries

    Points: 1051

    Good article, thank you.

    Tim

  • Doron Grinstein

    Grasshopper

    Points: 21

    Santhi,

    Navigating the MSDN documentation and other resources on the web, I find your article the most informative. No other article (which I could find) puts it together so clearly. It saved me a lot of time in doing research. I bet you spent a few days figuring out all the details of configuring service broker in a distributed environment. Thank you very much for sharing this great information with the community!

    Doron Grinstein

    CEO

    Bitkoo

    http://www.bitkoo.com

     

  • seetha.chandrapati

    SSC Rookie

    Points: 31

    Hi Santi,

    We have configured the distributed service borker environment as mentioned in the given steps.

    We could not be able to see the messages which are send from the source. We are not getting any errors...

    Pls. help us to find where could be the problem.

    Regards,

    Seetha

  • Johan Bijnens

    SSC Guru

    Points: 134254

    - check your sqlserver errorlog file at both servers !

    - maybe the script can help you out :

    Troubleshooting Service Broker (SSB) http://www.sqlservercentral.com/scripts/Maintenance+and+Management/31867/

    Johan


    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt ?

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me[/url] :alien: but most of the time this is me :hehe:

  • minalwad

    SSC Rookie

    Points: 25

    Great information. Thank you very much. I didn't find an implementation of distibuted Service broker this elaborate on any other website!

  • Gabbar-416226

    Valued Member

    Points: 69

    This was the best I saw anywhere.

    BUT ....

    I am getting this error continously:

    I have done this step by step thrice now.

    Connection attempt failed with error: '10061(No connection could be made because the target machine actively refused it.)'.

    Ports are open I can connect through Telnet.

    Remote Binding is also ON.

    Nothing on error logs.

    The only difference is Sender is 2005 and Receiver is 2008 Server.

    Does it matters?:w00t:

  • Johan Bijnens

    SSC Guru

    Points: 134254

    -what version of sql2008 are you using ?

    -Did you check with sql2008 bol ?

    - did you have a look at the SQL2008.Service_Broker.Samples.zip (codeplex) ?

    - did you enable SSB for sql 2008 ?

    http://sqlblogcasts.com/blogs/simons/archive/2008/03/11/SQL-Server-2008---Whats-new-in-the-tools.aspx

    Johan


    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt ?

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me[/url] :alien: but most of the time this is me :hehe:

  • Gabbar-416226

    Valued Member

    Points: 69

    Version: Microsoft SQL Server Management Studio 10.0.1300.13 ((SQL_PreRelease).080207-2350 )

    Only difference from 2005 to 2008 is new templates added in 2008.

    I have enabled SSB and trustworthy is ON too.

    Those sample code is not for 2 servers.

    I was able to successfully create a Service broker on same instance of server.

    But having probelm only when there are 2 servers involved.

    Also - I got the same error without creating any remote binding and then i created the

    remote binding but the error was still the same.

    Does this rings a bell?

  • Sunny-138471

    Ten Centuries

    Points: 1162

    Thanks Santhi

    You are awesome. Your statements put together did my job rightaway. Thanks a lot really

    Satish

  • abdul.samad.121

    Ten Centuries

    Points: 1049

    HI,

    It is an awesome article(Building Distributed Service Broker) and it really helped me a lot in understanding service broker.

    sub: I have two sql server instances on my local machine and I have set up service broker with the help of steps mentioned in Indukuri's article but I am getting this below message when I run the trace on the initiator instance.

    "Unable to route the incoming message. The system database msdb containing routing information is not available. The broker is disabled in msdb."

    Everytime I run the SP that initiates a dialog the message(s) is getting populated in transmission_queue and to_broker_instance column is empty.

    Please reply to this post as soon as possible.

    Thank you.

  • Johan Bijnens

    SSC Guru

    Points: 134254

    abdul.samad.121 (12/9/2010)


    ...

    "Unable to route the incoming message. The system database msdb containing routing information is not available. The broker is disabled in msdb."

    ...

    double check your both msdb broker setting.

    SELECT '' as 'Q_005', name, is_broker_enabled , service_broker_guid

    FROM sys.databases

    WHERE database_id = DB_ID('msdb')

    ;

    You can find my full ssb troubleshooting script at http://www.sqlservercentral.com/scripts/Maintenance+and+Management/31867/

    Johan


    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt ?

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me[/url] :alien: but most of the time this is me :hehe:

  • abdul.samad.121

    Ten Centuries

    Points: 1049

    Thanks ALZDBA for ur quick reply.

    When I executed the query on initiator instance I was getting is_broker_enabled = 0 so I executed the below query now I got the below given output.

    ALTER DATABASE msdb SET ENABLE_BROKER

    Q_005 name is_broker_enabled service_broker_guid

    msdb 1 6531971A-433F-

    Now I am not getting that error "broker is disabled in msdb"

    Now when I run the SP to start dialog on initiator again the messages are getting stuck in transmission_queue same thing is happening even when I initiate the dialog from other instance ietarget as initiator and initiator as target then also messages are getting stuck in transmission_queue on the other instance.

    when I checked the transmission_queue I am getting the below o/p

    to_broker_instance is empty, is_conversation_error=0,

    transmission_status is empty

    What to do now please help me out in resolving this issue.

    Thanks.

  • abdul.samad.121

    Ten Centuries

    Points: 1049

    Hi,

    When I run the trace On instance 2(target instance) I got the below msg:

    "Could not forward the message because forwarding is disabled in this SQL Server instance." Error:9792

    help me how to get rid of this problem.

    I have executed the below query on initiator and on target instance(both on same machine)

    USE msdb

    select *

    from sys.routes

    ;

    It is returning only one row name="AutoCreatedLocal"

    Is the above output perfect or else msdb should have all the user created routes to work consistently ?

    Do we have to create the route(s) in the msdb database as well apart from creating those routes in user defined databases as we generally do while configuring service broker on multiple instances?

    Please Please respond to this post as soon as possible.

    Thanks

Viewing 15 posts - 1 through 15 (of 23 total)

You must be logged in to reply to this topic. Login to reply