如何將 activemq-ra-version.rar 部署到 WebLogic
常見問題 > 設定 > 如何將 activemq-ra-version.rar 部署到 WebLogic
本指南說明如何將 ActiveMQ Classic 的資源配接器部署到 WebLogic 9.1。
- 使用設定精靈在 WebLogic 中建立新的網域(開始選單 BEA Products -> Tools -> Configuration Wizard)。
- 將 JAR 相依性新增至類別路徑中(這些是 RAR 檔案內的 JAR 檔案...由於某些原因,WebLogic 沒有從 RAR 檔案載入這些檔案)。其中一種方法是將 JAR 檔案放入網域的 lib 目錄中 (
<%BEA_HOME%>
\user_projects\domains\<%DOMAIN_NAME%>
\lib)。 - 將名為「broker-config.xml」的 BrokerXmlConfig 檔案新增至類別路徑中。這可以在 RAR 檔案「activemq-rar-*.rar」中找到。否則,修改 ra.xml,提供「broker-config.xml」的絕對路徑,如下所示。
<config-property> <description> Sets the XML configuration file used to configure the ActiveMQ Classic broker via Spring if using embedded mode. BrokerXmlConfig is the filename which is assumed to be on the classpath unless a URL is specified. So a value of foo/bar.xml would be assumed to be on the classpath whereas file:dir/file.xml would use the file system. Any valid URL string is supported. </description> <config-property-name>BrokerXmlConfig</config-property-name> <config-property-type>java.lang.String</config-property-type> <config-property-value>xbean:file:C:\\broker-config.xml</config-property-value> </config-property>
- 啟動網域的 WebLogic 伺服器(BEA Products -> User Projects ->
<domain_name>
-> Start Admin Server for Weblogic Server Domain)。 - 啟動網域的管理主控台(BEA Products -> User Projects ->
<domain_name>
-> Admin Server Console)並輸入使用者名稱和密碼。 - 在主選單上,按一下「您已部署的資源」下的「部署」。
- 在部署表格上,按一下「安裝」按鈕。如果按鈕已停用,則按一下「鎖定與編輯」以啟用它。
- 瀏覽 activemq-ra-*.rar 檔案,然後按一下「下一步」(為了測試目的,請選擇預設值)。
- 按一下「啟動變更」按鈕,檢查資源配接器是否已正確部署。