本節介紹已知的監視問題和相關的解決方案。
在 Application Server 後期測試版中,依預設不支援監視架構。
解決方案
若要將監視架構與 Application Server 整合,請遵循以下步驟:
編輯 <Install_dir>\appserver\lib\install\templates\ee\com.sun.cmm.as.xml 檔案。
使用 Application Server 安裝位置更新 ${InstalledLocation},使用目前日期更新 ${InstalledDate}。
將 <Install_dir>\appserver\lib\install\templates\ee\com.sun.cmm.as.xml 檔案複製到 <Install_dir>\appserver\lib。
執行 <MFWK_Install_location>\bin\mfwksetup.bat -r <Install_dir>\appserver\lib\com.sun.cmm.as.xml 指令。
其中,${InstalledLocation} 值是 Application Server 的安裝位置,即 c:\Sun\JavaES5\appserver。對於 $InstalledDate,您需要透過計算自 1970 年到目前時間的毫秒數,將時間換算成毫秒。