ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Use AMiT tool and SituationManager into WBIMB

Post new topic  Reply to topic
 Use AMiT tool and SituationManager into WBIMB « View previous topic :: View next topic » 
Author Message
SABCAS
PostPosted: Tue Sep 06, 2005 1:06 am    Post subject: Use AMiT tool and SituationManager into WBIMB Reply with quote

Acolyte

Joined: 09 Mar 2005
Posts: 60
Location: Switzerland

Hallo,
I'm using the supportPac ia0s with AMiT Plugin, and I have builded a simple Messageflow with a SituationManager, from AMit Tool I have exported the definition File and declared in the features of SituationManager Node (WBIMB).
I test it but I have the following Problem: when I take look the file "SituationManager.log", I see that the event is recognized but the attributes aren't read:
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageName (): BEGIN
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageName (): XML detected. Taking name from XML
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageName (): END, returning SIFM
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): BEGIN
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): Attribute SIFM.Header.FunctionHeader.returnCode=null [null]
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): Attribute expires=null [null]
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): Attribute occurenceTime=null [null]
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): Attribute SIFM.Header.BSR.function=null [null]
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): Attribute creationType=null [null]
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): Attribute SIFM.Header.FunctionHeader.functionType=null [null]
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): Attribute certainty=null [null]
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): Attribute detectionTime=null [null]
(DEBUG ) 20050906-104058CEST AbstractAmitNode::getMessageAttributes (): END
(DEBUG ) 20050906-104058CEST AbstractAmitNode::buildFlattenedMessage (): ***********************
(DEBUG ) 20050906-104058CEST AbstractAmitNode::buildFlattenedMessage (): content of event (SIFM) passed to AMiT core
(DEBUG ) 20050906-104058CEST AbstractAmitNode::buildFlattenedMessage (): ***********************
(DEBUG ) 20050906-104058CEST AbstractAmitNode::buildFlattenedMessage (): END
(INFO ) 20050906-104058CEST SituationManager::evaluateMessage (): Propagating event SIFM to AMiT
(DEBUG ) 20050906-104058CEST SituationManager::evaluateMessage (): Event SIFM propagated to AMiT
(DEBUG ) 20050906-104058CEST SituationManager::evaluateMessage (): Message propagated to output terminal 'out'
(DEBUG ) 20050906-104058CEST SituationManager::evaluateMessage (): END

My Message in input is the following:
<SIFM>
<Header id="a">
<Requester context="X'414d5120514d5f7362653135333234202c96114120001705'">
<ApplicationID application="com.swisscom.wsg" bo=""/>
</Requester>
<BSR function="GetDslamPortStatus_1" revision="1">
<ApplicationID application="com.swisscom.dps" bo=""/>
</BSR>
<Environment language="" prefix="" testFlag="" opCode="">
<Timestamp>2005-09-05T12:12:00</Timestamp>
</Environment>
<FunctionHeader functionType="asynchRequest" responseType="onExecution" priorityType="medium" returnCode="failed"/>
</Header>
<GetDslamPortStatusRequest>
<PhoneNumber>031/8230923</PhoneNumber>
</GetDslamPortStatusRequest>
</SIFM>

Is there somebody with experience on AMiT Tool, and where I kann find more samples ?
Thanks in advance for your Help.
Ciao
Sabato
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Sep 06, 2005 1:59 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Sabato, can you post your AMIT definition file here as well?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
SABCAS
PostPosted: Tue Sep 06, 2005 9:39 pm    Post subject: Reply with quote

Acolyte

Joined: 09 Mar 2005
Posts: 60
Location: Switzerland

Hallo wschutz,
here is my Definition file generated from AMiT Tool
<?xml version="1.0" encoding="UTF-8"?>
<!-- (C) Copyright IBM Corp. 2001, 2002 - All Rights Reserved. -->
<!-- Haifa Research Laboratory -->
<!-- Active Technologies Department -->
<amt xmlns="http://www.ibm.com/amt/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com/amt/ amt.xsd">
<domain>
<eventTypes>
<eventType name="SIFM" updateDefinition="add">
<identification createdBy="tgdcasa3" createdOn="9/5/05"/>
<attributeType name="SIFM.Header.BSR.function" xsi:type="string"/>
<attributeType
name="SIFM.Header.FunctionHeader.functionType" xsi:type="string"/>
<attributeType
name="SIFM.Header.FunctionHeader.returnCode" xsi:type="string"/>
<attributeType name="SIFM.Header.Environment.Timestamp" xsi:type="date"/>
</eventType>
<eventType name="Possible_Failures" updateDefinition="add">
<identification createdBy="tgdcasa3" createdOn="9/5/05"/>
<attributeType name="Function" xsi:type="string"/>
</eventType>
</eventTypes>
</domain>
<rules>
<keys>
<key name="SIFM_Event_Grouping_Key" type="string" updateDefinition="add">
<identification createdBy="tgdcasa3" createdOn="9/5/05"/>
<eventKey eventType="SIFM" expression="SIFM.Header.BSR.function"/>
</key>
</keys>
<lifespans>
<lifespan name="From_SIFM" updateDefinition="add">
<identification createdBy="tgdcasa3" createdOn="9/5/05"/>
<initiator>
<eventInitiator as="init_sifm_ev" correlate="ignore"
name="SIFM" where=""/>
</initiator>
<terminator>
<noTerminator/>
</terminator>
<keyBy name="SIFM_Event_Grouping_Key"/>
</lifespan>
</lifespans>
<situations>
<situation certaintyThreshold="1" internal="false"
lifespan="From_SIFM" name="Possible_Failures"
persistent="false" updateDefinition="add">
<identification createdBy="tgdcasa3" createdOn="9/5/05"/>
<all detectionMode="immediate" repeatMode="always" where="((init_sifm_ev.SIFM.Header.FunctionHeader.functionType =&quot;asynchRequest&quot;) &amp; (init_sifm_ev.SIFM.Header.FunctionHeader.returnCode = &quot;failed&quot;)) | (sit_sifm_ev.SIFM.Header.FunctionHeader.functionType = &quot;response&quot;) &amp; (sit_sifm_ev.SIFM.Header.FunctionHeader.returnCode = &quot;failed&quot;))">
<operandAll as="sit_sifm_ev" eventType="SIFM"
necessity="1" override="false"
quantifier="first" quantifierType="relative"
retain="false" threshold=""/>
</all>
<situationAttribute attributeName="Function" expression="sit_sifm_ev.SIFM.Header.BSR.function "/>
</situation>
</situations>
</rules>
</amt>

Thanks in advance for your Help
Ciao
Sabato
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Sep 07, 2005 3:29 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

I took your amit definition, and modified it. It works if you specify a field this way:
Body.SIFM.Header.BSR.function, you need to add the "Body" prefix to the names.
Here's the working def file:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<!--     (C) Copyright IBM Corp. 2001, 2002 - All Rights Reserved.  -->
<!--     Haifa Research Laboratory                                  --> <!--     Active Technologies Department                             --> <amt xmlns="http://www.ibm.com/amt/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com/amt/ amt.xsd">
    <domain>
        <eventTypes>
            <eventType name="SIFM" updateDefinition="add">
                <identification createdBy="tgdcasa3" createdOn="9/5/05"/>
                <attributeType name="Body.SIFM.Header.BSR.function" xsi:type="string"/>
                <attributeType
                    name="Body.SIFM.Header.FunctionHeader.functionType" xsi:type="string"/>
                <attributeType
                    name="Body.SIFM.Header.FunctionHeader.returnCode" xsi:type="string"/>
                <attributeType
                    name="Body.SIFM.Header.Environment.Timestamp" xsi:type="date"/>
            </eventType>
            <eventType name="Possible_Failures" updateDefinition="add">
                <identification createdBy="tgdcasa3" createdOn="9/5/05"/>
                <attributeType name="Function" xsi:type="string"/>
            </eventType>
        </eventTypes>
    </domain>
    <rules>
        <keys>
            <key name="SIFM_Event_Grouping_Key" type="string" updateDefinition="add">
                <identification createdBy="tgdcasa3" createdOn="9/5/05"/>
                <eventKey eventType="SIFM" expression="Body.SIFM.Header.BSR.function"/>
            </key>
        </keys>
        <lifespans>
            <lifespan name="From_SIFM" updateDefinition="add">
                <identification createdBy="tgdcasa3" createdOn="9/5/05"/>
                <initiator>
                    <eventInitiator as="init_sifm_ev" correlate="ignore"
                        name="SIFM" where=""/>
                </initiator>
                <terminator>
                    <noTerminator/>
                </terminator>
                <keyBy name="SIFM_Event_Grouping_Key"/>
            </lifespan>
        </lifespans>
        <situations>
            <situation certaintyThreshold="1" internal="false"
                lifespan="From_SIFM" name="Possible_Failures"
                persistent="false" updateDefinition="add">
                <identification createdBy="tgdcasa3" createdOn="9/5/05"/>
                <all detectionMode="immediate" repeatMode="always" where="((init_sifm_ev.Body.SIFM.Header.FunctionHeader.functionType =&quot;asynchRequest&quot;) &amp; (init_sifm_ev.Body.SIFM.Header.FunctionHeader.returnCode = &quot;failed&quot;)) | (sit_sifm_ev.Body.SIFM.Header.FunctionHeader.functionType = &quot;response&quot;) &amp; (sit_sifm_ev.Body.SIFM.Header.FunctionHeader.returnCode = &quot;failed&quot;))">
                    <operandAll as="sit_sifm_ev" eventType="SIFM"
                        necessity="1" override="false"
                        quantifier="first" quantifierType="relative"
                        retain="false" threshold=""/>
                </all>
                <situationAttribute attributeName="Function" expression="sit_sifm_ev.Body.SIFM.Header.BSR.function "/>
            </situation>
        </situations>
    </rules>
</amt>

I'm not sure that your model is correct, as you need to send TWO messages to the node to detect the situation. The first message starts the "From_SIFM" lifetime and the second message causes the "Possible_Failures" situation.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
SABCAS
PostPosted: Wed Sep 07, 2005 9:58 pm    Post subject: Reply with quote

Acolyte

Joined: 09 Mar 2005
Posts: 60
Location: Switzerland

Hallo wschutz,
very fine it's working!!! , yes you are right I made the Model that the situation should be after two messages one is the request and the otherone is the response from the same Group and if the returnCode is equal to "failed" than it should detected an Failure situation.
Anyway, Thanks a lot for your Help.
Best Regards
Ciao
Sabato
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Use AMiT tool and SituationManager into WBIMB
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.