設定指導教學

本主題說明進行控管啟用設定檔指導教學之前,必須執行的設定作業。

若要設定控管啟用設定檔指導教學,請執行下列作業:
  1. 下載指導教學範例檔 GEP_Tutorials.zip,將壓縮檔的內容解壓縮至您選擇的位置。 此檔案包含下列內容:
    • WSDL 檔案,定義「合格服務」。此服務由「帳戶建立服務」使用;您將在指導教學中配置「合格服務」及「帳戶建立服務」。
    • 許可證文件,說明「合格服務」的需求。
    • WSDL 及 XSD 檔案,定義「帳戶建立服務」。
    • 許可證文件,說明「帳戶建立服務」的需求。
    • 「位址格式製作程式」服務的 SCA 模組。
    • 代表提供者服務的商業功能許可證文件。
    • 代表消費者應用程式的商業功能許可證文件。
    • REST 型錄搜尋服務的定義文件。
    • 代表型錄搜尋服務許可證的文件。
  2. 確定控管啟用設定檔在作用中。
    1. 開啟 WebSphere® Service Registry and Repository Web 使用者介面。
    2. 如果您已啟用安全,請以指派給 J2EE Administrator 角色的使用者 ID 登入,否則請跳至下一步(如需 J2EE 角色及指派使用者給角色的詳細資料,請參閱J2EE 角色對映)。
    3. 必要的話,請從視景清單中選取配置,以切換至「配置」視景;「視景」清單位於頁面頂端的 WebSphere Service Registry and Repository 橫幅。
    4. 按一下管理設定檔 > 配置設定檔
    5. 如果已載入控管啟用設定檔,請確認設定檔的狀態是作用中;如果不是,請選取設定檔旁的勾選框,按一下變成作用中(設定檔顯示的名稱視載入設定檔時輸入的名稱而定)。

      如果未載入控管啟用設定檔,請遵循載入配置設定檔中的指示載入設定檔,然後啟用設定檔。

  3. 開啟 WebSphere Service Registry and Repository「商業空間」使用者介面,然後建立下列新的空間:
  4. 在您於步驟 3(這是 SCA 服務指導教學的必要步驟)建立的所有空間中,啟用「提供的 SCA 模組」關係的顯示。
    • 開啟第一個空間,並跳至「瀏覽」頁面。
    • 按一下編輯頁面
    • 在「詳細資料」小組件標題列功能表中,選取編輯設定以開啟「服務登錄詳細資料設定」視窗。
    • 選取資產 > 功能版本,然後按一下關係標籤。
    • 選取「提供的 SCA 模組」關係的可見勾選框。
    • 按一下儲存並關閉
    • 按一下完成編輯
    • 切換至您建立的下一個空間,並重複這些步驟。
  5. (選用)配置升級。

    雖然您不必完成此作業也能完成指導教學,但如果您配置 WSRR 升級功能,則可以進一步增加真實性, 當核准服務進行暫置部署時,服務即可升級至暫置登錄,當核准服務進行正式作業部署時,服務即可升級至正式作業登錄。 基於指導教學的目的,會使用手動升級機制;這表示服務實際上不直接升級至目標登錄,而是在您指定的目錄位置中建立匯出檔。 然後,您可以將檔案匯入另一個也有作用中控管啟用設定檔的登錄(如果有的話),或者,在完成指導教學時,可以刪除您在指導教學期間所建立的物件,然後將檔案匯入相同的登錄。

    1. 開啟 WebSphere Service Registry and Repository Web 使用者介面。
    2. 必要的話,請從視景清單中選取配置,以切換至「配置」視景。
    3. 按一下作用中的設定檔 > 升級,然後按一下升級內容
    4. 在「內容」窗格中輸入下列內容,以您在 WSRR 伺服器上要寫入升級匯出檔的位置,取代兩個 <filepath> 元素中的預設 C:/Promotion 路徑(filepath 格式必須為對您所使用作業系統有效的格式,且必須指定現有目錄,例如,Windows 平台上的 C:\promotion\tutorial,或 Unix 平台上的 /promotion/tutorial。 請注意,如果您使用的用戶端工作站不同於 WSRR 伺服器,則 filepath 會參照 WSRR 伺服器上的位置):
      <?xml version="1.0" encoding="UTF-8"?>
      <!-- begin_generated_IBM_copyright_prolog -->
      
      <!-- Licensed Materials - Property of IBM -->
      <!-- 5724-N72 5655-R41 -->
      <!-- (c) Copyright IBM Corp. 2007, 2009 All Rights Reserved -->
      <!-- US Government Users Restricted Rights - Use, duplication or -->
      <!-- disclosure restricted by GSA ADP Schedule Contract with -->
      <!-- IBM Corp. -->
      
      <!-- end_generated_IBM_copyright_prolog -->
      <promotion-configuration
        xmlns="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/PromotionProperties"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <environments>
         <!--  
      		   This environments section needs to be updated to define the correct promotion 
      		   environments that you have/will be using in your WSRR Governance topology.
      		   These sample environments (Staging and Production) will write the promotion data
      		   to a file on the WSRR system, which can later be imported into the target WSRR system.
      		 -->
          <environment
            name="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/GovernanceProfileTaxonomy#Staging" >
            <promotion>
              <type>manual</type>
              <filepath>C:/Promotion/</filepath>
              <filename>StagingPromotion%TS%.zip</filename>
            </promotion>
          </environment>
          <environment
            name="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/GovernanceProfileTaxonomy#Production" >
            <promotion>
              <type>manual</type>
              <filepath>C:/Promotion/</filepath>
              <filename>ProductionPromotion%TS%.zip</filename>
            </promotion>
          </environment>
        </environments>
        <transitions>
        <!-- 
      			  The  transitions section needs to be uncommented once valid environments have been defined above,
      			  in order for the promotions to occur on these transitions. 
      		-->
      		
        <!--
      		    The Deployed_On_Application_Server and Runs_On_Computer_System ignore-relationships
      		    prevent CCMDB entities from being promoted
      		-->
        <!--  
          <transition
            name="http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#ApproveStagingDeployment">
            <target-environments>
              <name>http://www.ibm.com/xmlns/prod/serviceregistry/6/1/GovernanceProfileTaxonomy#Staging</name>
            </target-environments>
            <ignore-relationships>
                 <name>Deployed_On_Application_Server</name>
                 <name>Runs_On_Computer_System</name>
            </ignore-relationships>
            <include-policies>
               <applies-to>http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceEnablementModel#ServiceLevelDefinition</applies-to>
               <applies-to>http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceEnablementModel#ServiceLevelAgreement</applies-to>
               <applies-to>http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceProfileExtensions#ServiceLevelDefinition</applies-to>
               <applies-to>http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceProfileExtensions#ServiceLevelAgreement</applies-to>
            </include-policies>    </transition>                   
          <transition
      name="http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#ApproveProductionDeployment">
            <target-environments>
              <name>http://www.ibm.com/xmlns/prod/serviceregistry/6/1/GovernanceProfileTaxonomy#Production</name>
            </target-environments>
            <ignore-relationships>
                 <name>Deployed_On_Application_Server</name>
                 <name>Runs_On_Computer_System</name>
            </ignore-relationships>
            <include-policies>
               <applies-to>http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceEnablementModel#ServiceLevelDefinition</applies-to>
               <applies-to>http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceEnablementModel#ServiceLevelAgreement</applies-to>
               <applies-to>http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceProfileExtensions#ServiceLevelDefinition</applies-to>
               <applies-to>http://www.ibm.com/xmlns/prod/serviceregistry/profile/v6r3/GovernanceProfileExtensions#ServiceLevelAgreement</applies-to>
               <allowed-state>http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#SOAPolicyLifecycle_Approved</allowed-state>
               <allowed-state>http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#SOAPolicyLifecycle_Superceded</allowed-state>
               <allowed-state>http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#SOAPolicyLifecycle_Deprecated</allowed-state>
               <allowed-state>http://www.ibm.com/xmlns/prod/serviceregistry/lifecycle/v6r3/LifecycleDefinition#SOAPolicyLifecycle_Retired</allowed-state>
            </include-policies>  </transition>                   
        -->                  
        </transitions>
      </promotion-configuration>
    5. 您也必須定義可啟動升級的轉移。 建議轉移和其相關聯的定義是包含在升級配置檔中。若要啟動升級,您必須移除註解字元。請刪除第一個轉移定義前面的 <!–-,以及最後一個轉移定義後面的 -–>轉移定義也會指定原則的升級方式(就針對原則連結考量的物件類型以及已升級原則應該處於的狀態而言)。 如需原則升級的相關資訊,請參閱原則升級
    6. 按一下確定,以儲存變更。
  6. 如果已啟用安全,請確定指派 Administrator 執行身分角色的使用者 ID(用於 WebSphere Application Server 中的 ServiceRegistry 應用程式)也指派給 WSRRAdmin 角色。 需要執行此步驟,您才能使用控管啟用設定檔中提供的自訂按鈕。
    如果要驗證哪一個使用者 ID 已被指派 Administrator 執行身分角色,請執行下列動作:
    1. 開啟 WebSphere Application Server 管理主控台。
    2. 按一下應用程式 > 應用程式類型 > WebSphere 企業應用程式,然後按一下 ServiceRegistry
    3. 按一下 User 執行身分角色。被指派 Administrator 執行身分角色的使用者 ID 會顯示在使用者名稱直欄中。

    如需指派使用者 WSRR 角色的詳細資料,請參閱新增及移除角色的主體


資訊 資訊

反饋


「時間戳記」圖示 前次更新: Wednesday, 10 July 2013


http://pic.dhe.ibm.com/infocenter/sr/v8r0/index/tutorial_gep_setup.html