JBoss 是一套應用程式伺服器,屬於開源的企業級Java中介軟體軟體,用於實作基於SOA架構的web應用和服務。目前有分:付費有支援的版本:JBoss EAP(Enterprise Application Platform) 及 Red Hat 支援社群的 Community edition 免費版本:JBoss AS;與一般社群的 WildFly 版本,軟體下載位置 http://wildfly.org/downloads/ 。
JBoss EAP (Enterprise Application Platform) 是一個支持 Java EE 6 的應用服務器,目前 EAP6 實現了兩個 Java EE 6 的配置文件:Full Profile & Web Profile。在實務作業中有 Standalone & Domain Mode 兩種模式,如下圖:
環境配置的文件分別是:
Standalone Mode:standalone.xml
Domain Mode:domain.xml & host.xml
Standalone Mode 的執行是最簡單的,下載 EAP 6.2.0 GA 壓縮檔並解壓於D:\AppServ\jboss-eap-6.2,編輯 D:\AppServ\jboss-eap-6.2\bin\standalone.bat ,加上JAVA_HOME的設定,即可執行。
@echo off
|
啟動Jboss:
Windows: standalone.bat
Linux: ./standalone.sh
本機預設的 JBoss 網址:http://localhost:8080
本機預設的 JBoss 管理網址:http://localhost:9990