none
Dynamic msmq port not sending message

    Question

  • I want to use dynamic port to send the message to msmq queue. I am assigning following properties in expression shape and then sending the message to dynamic port.

    msg(MSMQ.BodyType) = 8209;
    msg(MSMQ.Transactional) = false;
    msg(MSMQ.SegmentationSupport) = false;
    msg(MSMQ.UseAuthentication) = false;

    SPort(Microsoft.XLANGs.BaseTypes.Address) = "msmq://" + strDestinationQueueName;

    I dont get any error in the eventlog neither i get the message in msmq queue.

    Note:- If I use static msmq port with above properties it works fine. I was wondering what else could be the issue. There is no authentication or encryption required. (For static port i just create default port and it works fine without modyfying any property).

    Am I missing on some properties assignment ?

    Any help on this will be highly appreciated.


    Thanks With Regards,
    Shailesh Kawade
    MCTS BizTalk Server

    Monday, September 19, 2011 1:15 PM

Answers

  • Issue was with Timeout property. I did set up that property and it worked fine. It seems by default for dynamic port sets the timeout to 0 and MSMQ queue ignores the message.

     


    Thanks With Regards,
    Shailesh Kawade
    MCTS BizTalk Server
    Please Mark This As Answer If This Helps You.
    • Marked as answer by Shailesh Kawade Thursday, September 22, 2011 10:26 AM
    Thursday, September 22, 2011 10:26 AM

All replies

  • You probably are, but the message might be in your outbonud queue.  You can check there.  A good idea is to suspend (or stop) the static send port and look at what properties are populated.  You can then send those programatically.  I thought you'd need some sort of subject (normally a Guid). 

    Kind Regards,

    -Dan


    If this answers your question, please Mark as Answer
    Monday, September 19, 2011 1:52 PM
  • Can you post the error from the event log
    Regards,
    Bali
    MCTS: BizTalk Server 2010,BizTalk Server 2006 and WCF
    Blog: http://dpsbali-biztalkweblog.blogspot.com
    -----------------------------------------------------
    Mark As Answer or Vote As Helpful if this helps.
    Monday, September 19, 2011 1:53 PM
  • Hi,

    Are all the host instances running?

    Also what do you see when you check active instances using the BizTalk Administration Console?

     


    HTH,

    Randal van Splunteren 2 x MVP BizTalk Server, MCTS BizTalk Server
    my blog

    Check out the PowerShell provider for BizTalk
    Please mark as answered if this answers your question.
    Monday, September 19, 2011 1:53 PM
  • From my experience we have to explicitly define all parameters of the port regardles they have the default values or not.

    Try to explicitly set up all port parameters

    See here http://technet.microsoft.com/en-us/library/aa559595(BTS.10).aspx


    Leonid Ganeline [BizTalk MVP] BizTalk: Sample: Context Routing and Throttling with orchestration
    Monday, September 19, 2011 10:39 PM
  • Issue was with Timeout property. I did set up that property and it worked fine. It seems by default for dynamic port sets the timeout to 0 and MSMQ queue ignores the message.

     


    Thanks With Regards,
    Shailesh Kawade
    MCTS BizTalk Server
    Please Mark This As Answer If This Helps You.
    • Marked as answer by Shailesh Kawade Thursday, September 22, 2011 10:26 AM
    Thursday, September 22, 2011 10:26 AM