Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Building a Distributed Service Broker Application


Building a Distributed Service Broker Application

Author
Message
Sunny-138471
Sunny-138471
SSC-Enthusiastic
SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)SSC-Enthusiastic (164 reputation)

Group: General Forum Members
Points: 164 Visits: 266
Thanks Santhi

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

Satish
abdul.samad.121
abdul.samad.121
SSC Rookie
SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)

Group: General Forum Members
Points: 45 Visits: 114
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.
ALZDBA
ALZDBA
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6966 Visits: 8839
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 w00t

- 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" :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
abdul.samad.121
abdul.samad.121
SSC Rookie
SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)

Group: General Forum Members
Points: 45 Visits: 114
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
abdul.samad.121
SSC Rookie
SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)SSC Rookie (45 reputation)

Group: General Forum Members
Points: 45 Visits: 114
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
ALZDBA
ALZDBA
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6966 Visits: 8839
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 w00t

- 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" :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
Alex-181753
Alex-181753
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
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?
ALZDBA
ALZDBA
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6966 Visits: 8839
- 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 w00t

- 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" :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
Alex-181753
Alex-181753
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 9

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

- yes by telnet
- yes
fkucuk
fkucuk
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
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?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search