Storing messages in a database.

Home Page Forums BizTalk 2004 – BizTalk 2010 Storing messages in a database.

Viewing 1 reply thread
  • Author
    Posts
    • #16151

      Hi.

       Im quite new in using Biztalk, and have developed some easy orchestrations.

       
      But I dont understand howto store the messages in a database on the server.

       
      And then later on I want to compare incomming messages with messages that have arrived earlier.

       

      Thanks.
       

    • #16154

      Well, you might be able to do this using a Convoy.  But BizTalk really wasn’t designed to store messages in its databases out of the box.

       

      I’m guessing your best bet would be to have a custom process to store your message to a SQL database.

       

      Hope this helps.

      • #16155

        Ok, thanks..

         

        But, do BizTalk log and store the messages by it self in some log?

         And is it possible to get them out from there?
         

        • #16157

          Let me clarify my needs a little bit.

          What i need is to compare an incoming message with earlier messages to check if it is recieved before. I might not need a database for this?

           What is the easiest way to do this?

           In advance, thank you.
           

          • #16158

            BizTalk does store messages. Messages associated with active service instances (i.e. during processing) are stored in the MessageBox, but you can also enable tracking of full messages received and sent to be stored in the tracking databases.

             However, it does not sound to me like this is what you really want. Comparing the entire message contents to check for duplicate messages would be, at the very least, extremely expensive and really unnecessary most of the time. If your messages have some kind of natural identifier (i.e. they contain a message-id field or something else that identifies the request uniquely) then what I'd do is just to store that ID in a DB (not necessarily the entire message content, just the ID) and then compare that during the receive (either in a pipeline component for maximum efficiency, or at the beginning of an orchestration).

             

            • #16159

              Yes that is what I want..

               But how do I store the ID in a database?

               And how do I compare?

               

              Thank you
               

              • #16161

                I found the tracking feature, but how do i specify that I only want to track an ID?

                 An how do again compare?
                 

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.