Jan 26, 2016

How MEC Message Flow Work

Like any other middle-ware application MEC has unique architectural components. Below diagram depicts them.

Sol_Consept

  1. Inbound message will be consumed by the MEC and goes through detection rules defined in the partner agreement. Detection is either channel or XML detection. If inbound message is a flat file, channel detection will be used.
    For XML detection, inbound message must have meta data to configure the detection.

    Note below payload has RequestHeader as meta data.
    <ItemInfo>
    <RequestHeader>
    <environment>A</environment>
    <program>B</program>
    <company>A</company>
    </RequestHeader>
    <RequestBody>
    <!-- Items goes here-->
    </RequestBody>
    </ItemInfo>



    detection configuration is:
    XMLDetect
    • Detection information  & rules are saved in MEC storage. MEC will evaluate all saved detections (in a order) until its find the correct one.
  2. Once the detection has passed, process the message based on the defined processing steps. (in the given order)
    mec_proc
    • These steps are also saved on the MEC Storage
  3. Generate the output message.

Jan 18, 2016

M3 Integrations (MEC)

I was able to refresh my knowledge of   M3 integration with MEC (M3 E-collaborator).  MEC is a middle-ware specifically design for M3 integration development. Over the past few years it has been evolved.

MEC has following components:
  1. Flat-File definition tool -  Using this tool you can create XML schema file. Also it can generate sample Flat File & XML file for the schema. 
  2. Flat-File Repository manger - Is the repository for the local and server definitions. 
  3. Mapper - Use to transform data to a output file or update M3 directly for the given input schema and the defined logic. It has certain functions to perform this level of transformation.  (Later, with my next posts I'm hopping to reveal them). If you are familiar with Ms-BizTalk server, it's orchestration and MEC mapper is  similar in behavior. 
  4. Partner Admin tool - Use to configure agreement for the integration such as, 
  • Detection
  • Processes
  • Error handling
  • and other admin tasks (e.g. communication, web-service definitions, EventHub subscriptions etc.) 
Its mapper look as follows, 

MEC Mapper
MEC Mapper


Aug 23, 2015

Microsoft Band- My Health Companion

I was looking for a kind of monitor or tool to track my varies health related things. Doctor recommended me to walk at least 3 km &  workout 15mins daily.  I want to track my sleeping patterns as well.  ( Note: This is not to diagnose something, but to stay healthier)

I found Microsoft Band is satisfying my needs. Also it provides additional cool features. (As always Microsoft gives us something more additionally) It stands among similar products. So, three weeks ago, I bought a Microsoft Band.

20150808_105256

Now I can

  1. keep an eye on my sleeping pattern.
    20150808_105316
  2. see the distance I made so far
    20150808_124937
  3. see details about my workout session
    20150808_125121

Microsoft Band require Microsoft Health App which sync through Bluetooth 4.0 and App will sync to Microsoft Health web dashboard where you see drilled-down data.

image
image

Why don’t you try it?

Feb 25, 2015

Add Scrip Map error in IIS 7

Error:

The specified module required by this handler is not in the modules list. If you are adding a script map handler mapping, the IsapiModule or the CgiModule must be in the modules list.

image

Background:

I had this error message when configuring BTSHTTPReceive.dll into Handler Mappings  of IIS 7 in my development machine.

Solution:

Windows 7 64 bit:

  1. Go to the “Control Pannel” –> “Programs and Features”
  2. Click on “Turn Windows features on or off”
  3. Make sure “Application Development Features” are enabled.

image

Mar 26, 2014

WSO2 Con 2014

wso2con-asia-2014-inner-logo
Picture Courtesy: http://asia14.wso2con.com/ 

I’ve participated to WSO2 CON 2014 conference, 2nd time, held in Colombo. The theme for the conference is “Connected Business”. This is the current trend in the industry.

Interesting 5 keynotes by 5 experts, took my attention.

Everybody will be there in the Cloud after next 5 years. During this cloud transition period, businesses will evaluates the technologies. Being a open source company WSO2 provides complete middleware product stack to achieve “Connected Business”.

How to Display Loading Image with AJAX-Auto Complete

After long time I had a chance to update my Blog.

In this post I’m going to show you how to display data fetching progress with AJAX Auto Complete extender.

image

This is very simple.

  1. Add ASP Text box to the page (ID=TextBox1)
  2. Add AJAX AutoCompleteExtender
  3. Insert following javascript code to the web page
    <script type="text/javascript">
        function ShowImage() {
            document.getElementById('TextBox1')
                 .style.backgroundImage = 'url(images/loader.gif)';
     
            document.getElementById('TextBox1')
                               .style.backgroundRepeat = 'no-repeat';
     
            document.getElementById('TextBox1')
                               .style.backgroundPosition = 'right';
        }
        function HideImage() {
            document.getElementById('TextBox1')
                                 .style.backgroundImage = 'none';
        }
    ript>



  4. Set OnClientPopulating=ShowImage and OnClientPopulated=HideImage events of AutoCompleteExtender. Complete markup as below.



    <asp:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server"  
        DelimiterCharacters="" Enabled="True" ServicePath="WebService1.asmx" TargetControlID="TextBox1"
        ServiceMethod="GetCompletionList" MinimumPrefixLength="2"
        OnClientPopulating="ShowImage" OnClientPopulated="HideImage"  />

Jun 19, 2013

HTTPTimeOutException in ASP.net application

ASP.net application will throw HttpTimeOutException, if it’s request executing more than 100 seconds.

If you need execution time more than that, set following setting in web.config file.

<system.web>
<!-- in seconds-->
<httpRuntime executionTimeout="300"/>
</system.web>