Search  
Tuesday, December 02, 2008 ..:: MINA's Blog ::.. Register  Login
 SiteMap Minimize

    

 Blog_List Minimize

      

 New_Blog Minimize

    

   Minimize
Keystroke IT

    

 The beginnings of rudimentary BAM for ESB.NET ... Minimize
Location: BlogsMINA's BlogSOA and ESB.NET    
Posted by: Minas Casiou 6/23/2005

The XQuery below returns the list of records in which the BuildCmdString is zero and duration to execute is greater than 1 second.

When coupled with the up and coming BAM Services Adaptor for ESB.NET, this will provide the functionality to raise alerts on such queries.

eg. Send an alert when you get say 10 or more of these entries appearing etc.


WITH XMLNAMESPACES (
'urn:keystroke-com-au:ESB:Envelope:ESBEnvelope:Version:1-0-3' AS e,
'urn:schemas-biztalk-org:biztalk:BuildCmd2:BuildCmd2' as d
)

SELECT
 ResolveName,
 Context,
 Duration,
 RequestXml.query('
 data(/e:ESBEnvelope/e:body/e:documentBody/d:BuildCmd2/d:BuildCmdString)') as Result
FROM
 ESBLogSummary
WHERE
 ResolveName ='BuildCmd2'
and
 duration > 1000
and
 RequestXml.value
 ('contains
  (string
   (
    (/e:ESBEnvelope/e:body/e:documentBody/d:BuildCmd2/d:BuildCmdString
    )[1]
   ), "0"
  )','bit'
 )=1

 

SELECT count(*)

FROM
 ESBLogSummary
WHERE
 ResolveName ='BuildCmd2'
and
 duration > 1000
and
 RequestXml.value
 ('contains
  (string
   (
    (/e:ESBEnvelope/e:body/e:documentBody/d:BuildCmd2/d:BuildCmdString
    )[1]
   ), "0"
  )','bit'
 )=1

Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel 

  

 Text/HTML Minimize
Listed on BlogShares

      

 Search_Blog Minimize

    

 Blog_Archive Minimize

    

Copyright 2006 Keystroke IT   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by Perpetual Motion Interactive Systems Inc.