JBoss Enterprise Application Platform (EAP) is an enterprise-grade, open source platform to deploy highly transactional and scalable web applications. It includes everything you need to build, run, deploy, and manage enterprise-level Java applications in different environments—including on-premises, virtual environments, and private, public, and hybrid clouds.
This article explains some of what I have learned during my time with JBoss EAP, its operating modes, installing it, and managing the JBoss service. I will also show how to build and deploy a sample web application archive (WAR) file so that you can learn alongside me.
Understanding operating modes in JBoss EAP
JBoss EAP has two operating modes:
- Standalone server mode: For managing discrete instances
- Managed domain mode: For managing groups of instances from a single control point
The management capabilities are different depending on which operating mode you use to start the JBoss EAP installer.
Installing JBoss EAP
Before installing JBoss, ensure:
- Java/JDK is installed on the system
- The JBoss EAP admin user has installation directory read-write access
Then:
- Ensure Java/JDK is installed. If it's not, install it using
yum install java
. - Download the JBoss EAP installer (
.jar
) file from the Red Hat portal. - Create a directory where you want to save all your JBoss configuration files:
[root@jboss-eap ~]# mkdir /jboss
- Run the JBoss installer:
[jboss-eap Downloads]# java -jar jboss-eap-7.4.0-installer.jar
Executing this command opens the JBoss graphical installer where you can configure all your settings, installation paths, and more.
Below are a few images from the installation process:



Follow the onscreen instructions and complete the installation process. Note that the default settings are fine for basic installation.

Starting JBoss EAP
As I wrote above, JBoss EAP can run in either standalone mode or domain mode. The command to start JBoss EAP depends on the underlying platform and the operating mode.
[ You might also be interested in seeing how Linux sysadmins answer: What's your favorite IDE? ]
The commands to start JBoss EAP are:
- Standalone server:
[jboss-eap Downloads]# /jboss/bin/standalone.sh
- Managed domain:
[jboss-eap Downloads]# /jboss/bin/domain.sh
JBoss EAP listens on port 9990 by default. Visit 127.0.0.1:9990
to access your locally installed and running JBoss console. Provide the username and password to log into the JBoss management console.

Stopping JBoss EAP
To stop an interactive instance of JBoss EAP, press Ctrl+C in the terminal where JBoss EAP was started.
To stop a background instance of JBoss EAP, use the management command-line interface (CLI) to connect to the running instance and shut it down.
Launch the management CLI and issue the shutdown command:
[jboss-eap ~]# /jboss/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /] shutdown
[disconnected /]
Then press Ctrl+C to go back to your shell.
Building a WAR file
A WAR file is an archive that contains all the files related to a web application project. It includes Java class files, Jakarta Server Pages (JSPs), HTML pages, and many other resources.
[ Download now: A system administrator's guide to IT automation.]
To build a WAR file, first, you need to create WEB-INF
and WEB-INF/classes
directories. You can also use the web.xml
file in WEB-INF
.
Create your own WAR file:
[jboss-eap ~]# jar cvf <war-filename> <files-to-be-added into war>
[jboss-eap ~]# jar cvf test.war WEB-INF/ hello.jsp index.html
Verify the contents of a WAR file:
[jboss-eap ~]# jar tvf test.war
Create a project directory, say example
, and copy the WAR file into it:
[jboss-eap jboss]# mkdir /jboss/examples
[jboss-eap ~]# cp test.war /jboss/examples
You can also download prebuilt, open source WAR files, copy them into the JBoss directory, and use them.
Deploying a WAR file through the command line
As the JBoss documentation states, deploying applications using the management CLI gives you the benefit of a single CLI with the ability to create and run deployment scripts. Following are the commands you need to handle various tasks.
- Start the JBoss server in standalone mode:
[jboss-eap ~]# /jboss/bin/standalone.sh
- Connect to the JBoss command line:
[jboss-eap ~]# /jboss/bin/jboss-cli.sh --connect [standalone@localhost:9990 /]
- Deploy an application (provide the full path to the WAR file)
[standalone@localhost:9990 /] deploy /jboss/examples/test.war [standalone@localhost:9990 /]
http : //127.0.0.1:8080/test
. - List the deployments:
[standalone@localhost:9990 /] deployment info NAME RUNTIME-NAME PERSISTENT ENABLED STATUS test.war test.war true true OK
127.0.0.1:9990
. - Undeploy an application:
[standalone@localhost:9990 /] undeploy test.war [standalone@localhost:9990 /] deployment info
Wrapping up
In this article, you learned about the JBoss EAP and its operating modes, downloaded and executed the JBoss installer, managed the JBoss service, created and built a sample WAR file, and deployed the WAR file through the command line. Finally, you listed the deployment information by connecting to the JBoss CLI, and you've also done deployments from the management console. If you'd like to learn more about JBoss, check out the getting started page.
저자 소개
Ashish Bharadwaj is an intern at Red Hat who is passionate about
systems administration, networking, and programming.
Ashish believes open source is the future and that contributing to the technologies and community is a great way to solve problems efficiently and create new ideas or products.
He also has an interest in cloud computing, cybersecurity, and writing technical documentation.
In his free time, he enjoys watching TV shows and listening to music.
His favorite quote is, "No one who does good work will ever come to a bad end, either here or in the world to come."
You can find him on Linkedin here: Linkedin: https://www.linkedin.com/in/ashishbharadwajm
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.