Quantcast
Viewing all articles
Browse latest Browse all 461

Why I cannot see messages?

Hello,

Why I cannot see messages on MorilloReceivingQueue? Please see the following script:

USE [master];

GO

IFEXISTS(SELECT *FROMsys.databasesWHERE [name] = 'ColasDB')

  DROPDATABASE [ColasDB]

GO

CREATEDATABASE [ColasDB]

GO

ALTERDATABASE [ColasDB] SETTRUSTWORTHYON

GO

ALTERDATABASE [ColasDB] SETenable_broker

GO

USE [ColasDB];

GO

CREATEMASTERKEY ENCRYPTIONBYPASSWORD='P@ssw0rd';

CREATEMESSAGETYPE MorilloMessage

VALIDATION=WELL_FORMED_XML;

CREATECONTRACT MorilloContract

(MorilloMessageSENTBY ANY);

-- SENT BY INITIATOR

-- SENT BY TARGET

CREATEQUEUE MorilloSendingQueue

WITH

STATUS=ON

,RETENTION=OFF;

CREATEQUEUE MorilloReceivingQueue

WITH

STATUS=ON

,RETENTION=OFF;

CREATESERVICE MorilloSendingService

ONQUEUE MorilloSendingQueue

(MorilloContract);

CREATESERVICE MorilloReceivingService

ONQUEUE MorilloReceivingQueue

(MorilloContract);

CREATEROUTE MorilloRoute

WITH

SERVICE_NAME='MorilloReceivingService',

ADDRESS='LOCAL'

DECLARE @handleuniqueidentifier

BEGIN DIALOGCONVERSATION @handle

FROMSERVICE MorilloSendingService

TOSERVICE'MorilloReceivingService'

ONCONTRACT MorilloContract WITHENCRYPTION=OFF;

SENDONCONVERSATION @handle

MESSAGETYPE MorilloMessage

('<message>Hola </message>')

ENDCONVERSATION @handle WITH CLEANUP;

SELECT*FROM MorilloReceivingQueue;


Thank you in advance.

Regards,
Alberto Morillo
SQLCoffee.com



Viewing all articles
Browse latest Browse all 461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>