Skip to main content
Please wait...
Deploying to JBOSS Enterprise Application Platform (EAP)
24 Apr, 2025

Deploying to JBOSS Enterprise Application Platform (EAP)

Red Hat JBoss Enterprise Application Platform (JBoss EAP) is a Jakarta EE (fka Java EE)-compliant application server developed by Red Hat. It provides enterprise-grade security, performance, and scalability for Java applications and microservices. JBoss EAP supports deployment in various environments, including on-premise, virtual, private, public, and hybrid clouds.

 

JBoss EAP Makes Application Development Easier 

  • Modular Architecture: JBoss EAP's modular architecture starts services only as required, reducing resource consumption and improving performance. 

  • Cloud Optimization: It's optimized for cloud environments, including Red Hat OpenShift, allowing developers to leverage cloud-native capabilities. 

  • Support for Modern Frameworks: JBoss EAP supports Jakarta EE and various web-based frameworks like Spring, AngularJS, and jQuery, making it versatile for different development needs. 

  • Enhanced Management Tools: The updated management console and CLI provide easier configuration and administration, boosting productivity. 

  • Microservices Support: With Eclipse MicroProfile APIs, JBoss EAP facilitates the development and deployment of microservices-based applications. 

 

Focus on Business Logic 

A Jakarta EE-compliant application server like JBoss EAP allows software developers to focus on business logic by abstracting and managing the underlying infrastructure and implementation requirements. Here’s how: 

  • Built-in Services: JBoss EAP offers built-in services such as transaction management, security, and persistence, reducing the need for developers to implement these features manually. 

  • Standardized APIs: Jakarta EE provides standardized APIs for common tasks, ensuring consistency and reducing the complexity of integrating various components. 

  • Dependency Injection: With CDI (Contexts and Dependency Injection), developers can manage dependencies more efficiently, allowing them to concentrate on business logic. 

  • Resource Management: JBoss EAP handles resource management, including connection pooling and caching, which simplifies application development and enhances performance. 

 

Deploying a Traditional Web Application on JBoss EAP 

  1. Prepare Your Application: Ensure your web application is packaged as a WAR file. 

  2. Start JBoss EAP: Start the JBoss EAP server using the standalone.sh script for standalone mode.

  3. Deploy Using the Management CLI

  • Use the management CLI to deploy your application: 

deploy /path/to/your-application.war 
  
  • Verify deployment messages in the server log. 

  1. Deploy Using Maven

  • Add the WildFly Maven Plugin to your pom.xml:

<build>
    <plugins>
        <plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>
            <version>2.0.0.Final</version>
        </plugin>
    </plugins>
</build> 
  • Deploy your application using Maven:

mvn package wildfly:deploy
  • Verify the deployment by navigating to your application's URL in your web browser. 

 

Deploying a RESTEasy Web Service to JBoss EAP 

  1. Create Your RESTEasy Service

  • Define your RESTful web service using JAX-RS annotations. For example: 

import javax.ws.rs.GET; 
import javax.ws.rs.Path; 
import javax.ws.rs.Produces; 
import javax.ws.rs.core.MediaType; 
 
 @Path("/hello") 
 public class HelloWorldService { 
     @GET 
     @Produces(MediaType.TEXT_PLAIN) 
     public String sayHello() { 
         return "Hello, World!"; 
     } 
 } 
 
  1. Configure Your Application

  • Create a subclass of javax.ws.rs.core.Application and annotate it with @ApplicationPath: 

import javax.ws.rs.ApplicationPath; 
import javax.ws.rs.core.Application; 
 
 @ApplicationPath("/api") 
 public class MyApplication extends Application { 
 } 
 
  1. Package Your Application as a WAR file

  1. Deploy to JBoss EAP

  • Use the management CLI to deploy your WAR file:

deploy /path/to/your-application.war
  • Verify the deployment by accessing the REST endpoint. 

 

Deploying Process Automation Manager 7.13 on JBoss EAP

  1. Download and Install JBoss EAP

  • Obtain the JBoss EAP installer from the Red Hat Developer website and follow the installation instructions. 

  1. Download Process Automation Manager

  • Download the Process Automation Manager 7.13 package from the Red Hat Customer Portal. 

  1. Configure JBoss EAP

  • Set up the JBoss EAP server instance. Ensure it is properly configured for your environment, including database connections and security settings. 

  1. Deploy Business Central and KIE Server 

  • Deploy the Business Central and KIE Server components. It's recommended to install them in separate instances for production environments. 

  1. Configure Process Automation Manager

  • Configure the Process Automation Manager components according to your requirements. This includes setting up users, roles, and integrating with other systems. 

  1. Start the Server

  • Start the JBoss EAP server and verify that all components are running correctly.