Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««123»»

Building a Distributed Service Broker Application Expand / Collapse
Author
Message
Posted Monday, March 2, 2009 7:49 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, August 27, 2013 11:09 PM
Points: 162, Visits: 263
Thanks Santhi

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

Satish
Post #666614
Posted Thursday, December 9, 2010 3:02 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, February 13, 2014 5:47 AM
Points: 45, Visits: 108
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.


Post #1032346
Posted Thursday, December 9, 2010 3:58 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, August 28, 2014 12:47 AM
Points: 7,005, Visits: 8,451
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


Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere

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


- 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 but most of the time this is me
Post #1032359
Posted Thursday, December 9, 2010 4:48 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, February 13, 2014 5:47 AM
Points: 45, Visits: 108
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.
Post #1032368
Posted Thursday, December 9, 2010 7:32 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, February 13, 2014 5:47 AM
Points: 45, Visits: 108
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
Post #1032453
Posted Thursday, December 9, 2010 10:11 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, August 28, 2014 12:47 AM
Points: 7,005, Visits: 8,451
apparently something went wrong in your setup process.

I would clean it up totally and start all over again.

Prepare your checklist and tick the steps you perform.






Johan


Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere

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


- 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 but most of the time this is me
Post #1032569
Posted Wednesday, November 30, 2011 1:49 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 13, 2013 5:20 AM
Points: 2, Visits: 9
Hi,
I've built my SSSB application according this article but it does not work.
The only thing I can get is message at transmission queue:
Connection handshake failed. There is no compatible authentication protocol. State 21.
It looks like the problem is at end point configuration.
Here is EP ddl:
CREATE ENDPOINT SB_Initiator_EP
STATE=STARTED
AS TCP (LISTENER_PORT = 4022)
FOR SERVICE_BROKER
(
AUTHENTICATION = CERTIFICATE SB_EP_Initiator_Certificate,
ENCRYPTION = SUPPORTED
);

CREATE ENDPOINT SB_Target_EP
STATE=STARTED
AS TCP (LISTENER_PORT = 4022)
FOR SERVICE_BROKER
(
AUTHENTICATION = CERTIFICATE SB_EP_Target_Certificate,
ENCRYPTION = SUPPORTED
);

Could you please advise?
Post #1214222
Posted Thursday, December 1, 2011 5:27 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, August 28, 2014 12:47 AM
Points: 7,005, Visits: 8,451
- can both instances communicate using those port numbers ? (firewall, ..)
- did you install the certificates correct ?


Johan


Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere

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


- 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 but most of the time this is me
Post #1214532
Posted Thursday, December 1, 2011 8:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, May 13, 2013 5:20 AM
Points: 2, Visits: 9

- can both instances communicate using those port numbers ? (firewall, ..)
- did you install the certificates correct ?

- yes by telnet
- yes
Post #1214670
Posted Friday, July 6, 2012 8:42 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, February 10, 2014 1:59 AM
Points: 1, Visits: 28
Best article about this subject ever.

I just wonder if it is possible to make this without using certificates..

Is it really necessary to use certificates in an domain environment?
Post #1326134
« Prev Topic | Next Topic »

Add to briefcase ««123»»

Permissions Expand / Collapse