﻿<?xml version="1.0" encoding="utf-8"?>
<ManagementPack ContentReadable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <Manifest>
    <Identity>
      <ID>Microsoft.JEE.WebSphere.7.0.EJB</ID>
      <Version>7.4.4514.1</Version>
    </Identity>
    <Name>Microsoft.JEE.WebSphere.7.0.EJB</Name>
    <References>
      <Reference Alias="SC">
        <ID>Microsoft.SystemCenter.Library</ID>
        <Version>7.0.8430.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="Windows">
        <ID>Microsoft.Windows.Library</ID>
        <Version>7.5.8501.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="System">
        <ID>System.Library</ID>
        <Version>7.5.8501.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="SCDW">
        <ID>Microsoft.SystemCenter.DataWarehouse.Library</ID>
        <Version>7.0.8430.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="Performance">
        <ID>System.Performance.Library</ID>
        <Version>7.0.8430.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="Health">
        <ID>System.Health.Library</ID>
        <Version>7.0.8430.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="JEE">
        <ID>Microsoft.JEE.Library</ID>
        <Version>7.3.2103.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="WebSphere">
        <ID>Microsoft.JEE.WebSphere.Library</ID>
        <Version>7.3.2103.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="WebSphere70">
        <ID>Microsoft.JEE.WebSphere.7.0</ID>
        <Version>7.3.2103.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
      <Reference Alias="Unix">
        <ID>Microsoft.Unix.Library</ID>
        <Version>7.4.3000.0</Version>
        <PublicKeyToken>9396306c2be7fcc4</PublicKeyToken>
      </Reference>
    </References>
  </Manifest>
  <TypeDefinitions>
    <EntityTypes>
      <ClassTypes>
        <ClassType ID="Microsoft.JEE.WebSphere.7.0.EJB.Application" Abstract="false" Accessibility="Public" Hosted="true" Base="WebSphere70!Microsoft.JEE.WebSphere.7.0.Application" />
      </ClassTypes>
      <RelationshipTypes />
    </EntityTypes>
    <DataTypes />
    <SchemaTypes />
    <ModuleTypes />
    <MonitorTypes />
  </TypeDefinitions>
  <Monitoring>
    <Discoveries>
      <!-- Discover WebSphere Applications (EAR) for a configuration -->
      <Discovery ID="Microsoft.JEE.WebSphere.7.0.EJB.Application.Discovery" 
                 Target="WebSphere70!Microsoft.JEE.WebSphere.7.0.Monitored.Profile" Remotable="true" Enabled="true">
        <Category>Discovery</Category>
        <DiscoveryTypes>
          <DiscoveryClass TypeID="Microsoft.JEE.WebSphere.7.0.EJB.Application" />
          <DiscoveryRelationship TypeID="JEE!Microsoft.JEE.MonitoredApplicationServerHostsApplicationRelationship" />
        </DiscoveryTypes>
        <DataSource ID="DS" TypeID="JEE!Microsoft.JEE.Discovery.MBeans.DataSource">
          <ApplicationServerGuid>$Target/Host/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Instance"]/Id$</ApplicationServerGuid>
          <ComputerName>$Target/Host/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Instance"]/HostName$</ComputerName>
          <Protocol>$Target/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/Protocol$</Protocol>
          <Port>$Target/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/Port$</Port>
          <BaseURL />
          <JMXQuery>WebSphere:j2eeType=EJBModule,*</JMXQuery>
          <AdditionalArguments>&amp;MaxDepth=0</AdditionalArguments>
          <ReturnMultiplePropertyBags>true</ReturnMultiplePropertyBags>
          <UseAttributesInKeysOfReturnedPropertyBags>false</UseAttributesInKeysOfReturnedPropertyBags>
          <!-- Interval currently set to four hours -->
          <IntervalSeconds>14400</IntervalSeconds>
          <TimeoutSeconds>900</TimeoutSeconds>
          <ClassId>$MPElement[Name="Microsoft.JEE.WebSphere.7.0.EJB.Application"]$</ClassId>
          <InstanceSettings>
            <Settings>
              <!-- The following properties are defined for the Application's parent classes -->
              <Setting>
                <Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
                <Value>$Data/Property[@Name='/MBeans/javax.management.modelmbean.RequiredModelMBean/objectNameElements/name']$</Value>
              </Setting>
              <!-- These properties are for the WebSphere Configuration-->
              <Setting>
                <Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Instance"]/Id$</Name>
                <Value>$Target/Host/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Instance"]/Id$</Value>
              </Setting>
              <Setting>
                <Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Instance"]/HostName$</Name>
                <Value>$Target/Host/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Instance"]/HostName$</Value>
              </Setting>
              <!-- The following properties are defined for the Application-->
              <Setting>
                <Name>$MPElement[Name="JEE!Microsoft.JEE.Application"]/ApplicationName$</Name>
                <Value>$Data/Property[@Name='/MBeans/javax.management.modelmbean.RequiredModelMBean/objectNameElements/name']$</Value>
              </Setting>
              <Setting>
                <Name>$MPElement[Name="JEE!Microsoft.JEE.Application"]/j2eeType$</Name>
                <Value>$Data/Property[@Name='/MBeans/javax.management.modelmbean.RequiredModelMBean/objectNameElements/j2eeType']$</Value>
              </Setting>
              <Setting>
                <Name>$MPElement[Name="JEE!Microsoft.JEE.Application"]/ObjectName$</Name>
                <Value>$Data/Property[@Name='/MBeans/javax.management.modelmbean.RequiredModelMBean/objectName']$</Value>
              </Setting>
            </Settings>
          </InstanceSettings>
        </DataSource>
      </Discovery>
    </Discoveries>
    <Tasks />
    <Monitors />
  </Monitoring>
  <Presentation>
    <Views>
      <View ID="Microsoft.JEE.WebSphere.7.0.EJB.Application.StateView" Accessibility="Public" Enabled="true" 
            Target="Microsoft.JEE.WebSphere.7.0.EJB.Application" TypeID="SC!Microsoft.SystemCenter.StateViewType" Visible="true">
        <Category>JEE WebSphere Application Server EJB</Category>
        <Criteria>
          <InMaintenanceMode>false</InMaintenanceMode>
        </Criteria>
        <Presentation>
          <ColumnInfo Index="0" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
            <Name>ApplicationName</Name>
            <Id>ApplicationName</Id>
          </ColumnInfo>
          <ColumnInfo Index="1" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
            <Name>j2eeType</Name>
            <Id>j2eeType</Id>
          </ColumnInfo>
          <ColumnInfo Index="2" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
            <Name>ObjectName</Name>
            <Id>ObjectName</Id>
          </ColumnInfo>
          <ColumnInfo Index="3" SortIndex="-1" Width="100" Grouped="false" Sorted="false" IsSortable="true" Visible="true" SortOrder="Ascending">
            <Name>Path</Name>
            <Id>Path</Id>
          </ColumnInfo>
        </Presentation>
      </View>
    </Views>
    <Folders />
    <FolderItems>
      <FolderItem ElementID="Microsoft.JEE.WebSphere.7.0.EJB.Application.StateView" 
                  Folder="WebSphere!Microsoft.JEE.WebSphere.ViewFolder.Health" />
    </FolderItems>
    <StringResources />
  </Presentation>
  <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
      <DisplayStrings>
        <DisplayString ElementID="Microsoft.JEE.WebSphere.7.0.EJB">
          <Name>JEE WebSphere 5.x EJB</Name>
          <Description>The JEE WebSphere EJB Management Pack. This management pack discovers EJBs on WebSphere servers.</Description>
        </DisplayString>
        <!-- Classes -->
        <DisplayString ElementID="Microsoft.JEE.WebSphere.7.0.EJB.Application">
          <Name>EJB Application (EAR) for WebSphere 5.x application server</Name>
          <Description>EJB EAR application deployed on a WebSphere application server.</Description>
        </DisplayString>
        <!-- Relationships-->
        <!-- ModuleTypes -->
        <!-- Discoveries -->
        <DisplayString ElementID="Microsoft.JEE.WebSphere.7.0.EJB.Application.Discovery">
          <Name>JEE EJB applications for WebSphere 5.x application server</Name>
          <Description>Discovers applications (EAR) installed on a WebSphere application server configuration.</Description>
        </DisplayString>
        <!-- Monitors -->
        <!-- Rules -->
        <!-- Views -->
        <DisplayString ElementID="Microsoft.JEE.WebSphere.7.0.EJB.Application.StateView">
          <Name>EJB Applications</Name>
          <Description>The state view for WebSphere EJB applications.</Description>
        </DisplayString>
      </DisplayStrings>
      <KnowledgeArticles>
        <!-- Management Pack -->
        <KnowledgeArticle ElementID="Microsoft.JEE.WebSphere.7.0.EJB" Visible="true">
          <MamlContent>
            <maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10">
              <maml:title>Summary</maml:title>
              <maml:para>The JEE WebSphere EJB Management Pack provides discovery of EJBs in a WebSphere application servers.</maml:para>
              <maml:para />
            </maml:section>
          </MamlContent>
        </KnowledgeArticle>
        <KnowledgeArticle ElementID="Microsoft.JEE.WebSphere.7.0.EJB.Application.Discovery" Visible="true">
          <MamlContent>
            <maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10">
              <maml:title>Summary</maml:title>
              <maml:para>The application discovery discovers applications associated with a WebSphere application server configuration.</maml:para>
              <maml:para>The discovery occurs using MBeans with the following query:</maml:para>
              <maml:list>
                <maml:listItem>
                  <maml:para>WebSphere.management.local:j2eeType=EJBModule,*</maml:para>
                </maml:listItem>
              </maml:list>
              <maml:para />
            </maml:section>
          </MamlContent>
        </KnowledgeArticle>
      </KnowledgeArticles>
    </LanguagePack>
  </LanguagePacks>
</ManagementPack>