配置 ThingWorx Navigate 來連線至多個 Windchill 系統
|
ThingWorx Navigate 不支援立即可用 (OOTB) 任務的多 Windchill 組態。此組態與多個 Windchill 實例連接,僅在可能由您建立的任何自訂任務中受支援。針對 OOTB 任務,未來發行版本將支援此組態。
|
您可以將 ThingWorx Navigate 連線至多個 Windchill 系統。然後 ThingWorx Navigate 會搜尋系統,並在一個頁面上向最終使用者顯示搜尋結果。
本主題描述如何配置 ThingWorx Navigate 來連線至多個 Windchill 實例,每個實例皆執行 ThingWorx Navigate 中的服務,可自動複製必要的連接器、實體和服務。
先決條件
在設定您的多個 Windchill 組態前,請確定您符合下列先決條件:
• 您的 Windchill 伺服器已設定。
• ThingWorx Navigate 使用單一登入或 Windchill 驗證進行配置。
• 每個使用者在每個 Windchill 系統具有相同的使用者名稱。
每個 Windchill 系統傳回的資料依賴於在該特定伺服器上的使用者授與的權限。如果使用者使用不同的使用者名稱登入,則 ThingWorx Navigate 無法如預期運作。
新增 Windchill 伺服器·
欲新增另一個 Windchill 伺服器,請複製現有資源提供者與 Windchill 連接器:
1. 在 ThingWorx Composer 中的「系統」下,按一下「資源」。
2. 搜尋資源 NavigateSetupUtils,然後開啟它。「一般資訊」頁即會開啟。
3. 按一下「服務」。「服務」頁即會開啟。
4. 搜尋
AddWindchillServerForNavigate,然後按一下
。
「執行服務: AddWindchillServerForNavigate」視窗即會開啟。
5. 在「後綴」下,將後綴新增至重複的伺服器名稱,然後按一下「執行」。
6. 檢查重複物件摘要的輸出。
ptc-windchill-integration-connector-proxy_suffix
ptc-windchill-integration-connector_suffix
WindchillDemoPartResourceProvider_suffix
WindchillDocumentResourceProvider_suffix
WindchillDemoEpmDocumentResourceProvider_suffix
WindchillDemoRepresentationResourceProvider_suffix
| 如果您發現輸出錯誤且服務失敗,則不會建立新的連接器,且您將無法使用多個 Windchill 伺服器配置您的系統。 |
7. 按一下「完成」。
8. 欲檢查是否已建立重複的連接器、連接器 Proxy 與資源提供者,請搜尋具有指定後綴的名稱。
9. 如果 ThingWorx Navigate 已配置為單一登入,則請重新啟動 Apache Tomcat,否則無法配置連接器。
現在,您已新增重複的連接器,下一步是使用多個 Windchill 連線的驗證方法配置 ThingWorx Navigate。
根據原始連接器與連接器 Proxy (ptc-windchill-integration-connector 與 ptc-windchill-integration-connector-proxy) 的組態,配置新連接器和連接器 Proxy (ptc-windchill-integration-connector_suffix 與 ptc-windchill-integration-connector-proxy_suffix),但將新 Windchill 伺服器的詳細資訊新增至:
• ptc-windchill-integration-connector-proxy_suffix URL 和測試連線 URL
• ptc-windchill-integration-connector_suffix 基礎 URL
繼續進行有關單一登入或 Windchill 驗證的部份。
將新的伺服器配置為單一登入
欲使用單一登入配置其他
Windchill 伺服器,請參閱
PTC 身分識別與存取管理說明中心。本說明中心可提供指示和多個識別提供者組態範例。
您的系統現已連線至新 Windchill 伺服器。再次登入 ThingWorx Navigate 以存取來自多個 Windchill 系統的資料。
將新的伺服器配置為使用 Windchill 驗證
如果您使用 Windchill 驗證,請遵循下列步驟:
1. 在 ThingWorx Composer 中的「安全性」下,按一下「驗證器」。
2. 按一下 ptc-identity-provider-authenticator 以將其開啟。
3. 按一下「組態」。「組態」頁即會開啟。
4. 選取 MultipleWindchillServers 的核取方塊 - 這樣一來,便會將 ThingWorx Navigate 連線到兩個或多個 Windchill 實例。
5. 停止 Apache Tomcat 與 ThingWorx Integration Runtime。
6. 取代 Tomcat 安裝目錄中的 web.xml 檔案:
a. 瀏覽至 <Tomcat 安裝位置>\webapps\Thingworx\WEB-INF。
b. 複製一份 web.xml,然後將其儲存在其他位置。
c. 瀏覽至 <Navigate 安裝位置>\NavigateApp\idp\twx\multi\,然後複製 web.xml 檔案。
| 如果您已下載 ThingWorx-Navigate-Supplemental-Files-<版本>-bundle,您也可以從 <補充檔案下載位置>\idp\twx 資料夾複製 web.xml 檔案。 |
d. 在以下位置貼上 web.xml:
<Tomcat 安裝位置>\webapps\Thingworx\WEB-INF
7. 啟動 Apache Tomcat 與 ThingWorx Integration Runtime。
| 請確定 KeyStore 和 TrustStore 檔案包含所有 Windchill 伺服器所需的憑證。缺少憑證時,您將無法連線至其他 Windchill 伺服器。 |
新伺服器現已透過 Windchill 驗證進行配置。再次登入 ThingWorx Navigate 以存取來自多個 Windchill 系統的資料。
| 針對配置了 Windchill 驗證的系統,使用者必須以相同的使用者角色登入每個 Windchill 實例。 |
繼續進行下一部份,以設定新伺服器的重新整理頻率。
針對新的伺服器配置重新整理
如果您要新增 Windchill 伺服器到 ThingWorx Navigate 的現有設定,請決定您的使用者何時將看到新伺服器的結果。針對新的伺服器選擇下列類型之一的重新整理:
• 僅會於登入期間尋找新伺服器 - 這是預設。您的使用者將在下次登入 ThingWorx Navigate 時看到新伺服器的搜尋結果。
• 每 n 秒重新整理一次 - 系統將每 n 秒檢查一次新伺服器。重新整理之後,您的使用者將看到其他伺服器的結果,而無需先登出。請遵循下列步驟來設定自動重新整理率:
a. 停止 Apache Tomcat 與 ThingWorx Integration Runtime。
b. 在文字編輯器中開啟 <Tomcat 安裝位置>\webapps\Thingworx\WEB-INF\web.xml 檔案。
c. 尋找 mwaTimePeriod 並將參數值變更為 +n,其中 n 表示每 n 秒尋找一次新伺服器。
| • 如果您使用的是 Windchill 驗證,並且此參數設定為正數值,以及下列其中一個 Windchill 伺服器當機,則當該伺服器恢復正常運作時,使用者可能會遇到一些問題。在此情況下,使用者應重新整理 ThingWorx Navigate 的登陸頁面來取得該伺服器的 Windchill 登入提示。 • 或者,您可以透過將 masterIdpServer 參數值變更為 Windchill URL,來選擇使用者首先登入的 Windchill 伺服器。 |
d. 儲存並關閉檔案。
e. 啟動 Apache Tomcat 與 ThingWorx Integration Runtime。
| 針對此組態,請注意以下幾點: • 針對配置了 Windchill 驗證的系統,使用者必須以相同的使用者角色登入每個 Windchill 實例。 • 下列任務不受支援: ◦ 「報告問題」 ◦ 「我的任務」 ◦ 「下載工程圖包」 |