Este contenido no está disponible en el idioma seleccionado.
Chapter 4. Adding Feature Packs to existing JBoss EAP Servers using the jboss-eap-installation-manager
You can use jboss-eap-installation-manager
to install and update JBoss EAP. You can also install and update feature packs on your existing JBoss EAP servers using jboss-eap-installation-manager
.
4.1. Prerequisites Copiar enlaceEnlace copiado en el portapapeles!
- You have an account on the Red Hat Customer Portal and are logged in.
- You have reviewed the supported configurations for JBoss EAP 8.0.
- You have installed a supported JDK.
-
You have downloaded the
jboss-eap-installation-manager
.
4.2. Adding Feature Packs to an existing JBoss EAP installation Copiar enlaceEnlace copiado en el portapapeles!
You can install feature packs on existing JBoss EAP servers using jboss-eap-installation-manager
.
Prerequisites
- You have installed JBoss EAP 8.0.
Procedure
-
Open your terminal emulator and navigate to the directory containing the downloaded
jboss-eap-installation-manager
. Define the channels, that provide the feature packs, you want your JBoss EAP server subscribed to:
./jboss-eap-installation-manager.sh channel add \ --channel-name feature-pack-channel \ --repositories https://fp.repo.org/maven \ --manifest com.example:feature-pack
./jboss-eap-installation-manager.sh channel add \ --channel-name feature-pack-channel \ --repositories https://fp.repo.org/maven \ --manifest com.example:feature-pack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Create and subscribe your JBoss EAP installation to a channel providing additional artifacts. For more information see Creating and subscribing your JBoss EAP installation to a channel providing additional artifacts.
Select layers and configuration of the installed Feature Pack
The feature-pack add
command is used to select which feature pack layer(s) need to be installed and which configuration files should be modified.
Provide the necessary layers for the installation.
./jboss-eap-installation-manager.sh feature-pack add \ --fpl com.example:feature-pack \ --layers layer-one,layer-two \ --dir jboss-eap8
$ ./jboss-eap-installation-manager.sh feature-pack add \ --fpl com.example:feature-pack \ --layers layer-one,layer-two \ --dir jboss-eap8
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Provide the necessary layers for the installation and choose the configuration file you want to modify.
./jboss-eap-installation-manager.sh feature-pack add \ --fpl com.example:feature-pack \ --layers layer-one,layer-two \ --target-config standalone-ha.xml
$ ./jboss-eap-installation-manager.sh feature-pack add \ --fpl com.example:feature-pack \ --layers layer-one,layer-two \ --target-config standalone-ha.xml --dir jboss-eap8
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note-
You can modify the default feature pack configuration file by using the
--target-config
parameter. This parameter selects the configuration file in thestandalone/configuration
folder that will receive the changes. -
If you have changed the chosen configuration file before, the updates won’t overwrite it. Instead, the changes will be saved in a new file named with a
.glnew
ending. You’ll need to handle and merge any conflicts yourself. - The feature pack can only modify standalone configuration files and not files in a managed domain.
-
The supported values for the
--target-config
parameter are the names of the configuration files provided by the base EAP8/XP5 servers. Additional feature packs should not provide additional configurations.
-
You can modify the default feature pack configuration file by using the
4.3. Adding feature packs to existing JBoss EAP servers Copiar enlaceEnlace copiado en el portapapeles!
You can add additional feature packs when installing a JBoss EAP server with jboss-eap-installation-manager
.
Prerequisites
- You have an account on the Red Hat Customer Portal and are logged in.
- You have reviewed the supported configurations for JBoss EAP 8.0.
- You have installed a supported JDK.
-
You have downloaded the
jboss-eap-installation-manager
.
Procedure
-
Open the terminal emulator and navigate to the directory containing
jboss-eap-installation-manager
. Create a
provisioning.xml
file and define the feature packs you want to install:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a
channels.yaml
file, and define the channels you want JBoss EAP subscribed to.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install feature packs using the
--definition
and--channel
parameters:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.4. Adding Feature Packs to JBoss EAP servers by using an offline repository Copiar enlaceEnlace copiado en el portapapeles!
You can use the jboss-eap-installation-manager
to add feature packs when installing a JBoss EAP from an offline repository.
Prerequisites
- You have downloaded the JBoss EAP 8.0 offline repository from the Red Hat Customer Portal.
- If required, you have the downloaded feature pack repository archive file from the Red Hat Customer Portal.
Downloading the feature pack offline repository is an optional prerequisite because some feature packs are already included in the JBoss EAP 8.0 offline repository.
Procedure
-
Open the terminal emulator and navigate to the directory containing
jboss-eap-installation-manager
. Install the required feature pack into JBoss EAP and specify the offline repositories by using
--repositories
parameter:./jboss-eap-installation-manager.sh feature-pack add \ --fpl com.example:feature-pack \ --layers layer-one,layer-two \ --repositories file:/path/to/eap8/offline_repo,file:/path/to/feature_pack/offline_repo
$ ./jboss-eap-installation-manager.sh feature-pack add \ --fpl com.example:feature-pack \ --layers layer-one,layer-two \ --repositories file:/path/to/eap8/offline_repo,file:/path/to/feature_pack/offline_repo --dir jboss-eap8
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.5. Reverting installed feature packs Copiar enlaceEnlace copiado en el portapapeles!
You can use the jboss-eap-installation-manager
to revert a feature pack previously added to your JBoss EAP server:
Prerequisites
- You have added feature packs to your JBoss EAP server.
Procedure
-
Open the terminal emulator and navigate to the directory containing the downloaded
jboss-eap-installation-manager
. Investigate the history of all feature packs added to your JBoss EAP server:
./jboss-eap-installation-manager.sh history --dir jboss-eap-8.0
$ ./jboss-eap-installation-manager.sh history --dir jboss-eap-8.0 [79a553e7] 2023-08-23T13:39:10Z - feature_pack [org.jboss.eap.channels:eap-8.0::1.0.1.GA][com.example.channels:myfaces::1.0.0] [744013d2] 2023-08-23T13:38:16Z - config_change [928fe586] 2023-08-23T13:22:11Z - install [org.jboss.eap.channels:eap-8.0::1.0.1.GA]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop JBoss EAP server.
Revert your to a previous version.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.6. Creating and subscribing to channels when installing JBoss EAP to provide additional artifacts Copiar enlaceEnlace copiado en el portapapeles!
Some feature packs require additional artifacts that are not supplied by Red Hat. You have to provide the required artifacts by defining custom channels. For example, the MyFaces feature pack requires the org.apache.myfaces.core:myfaces-impl
and org.apache.myfaces.core:myfaces-api
jar files. However, it is up to you to determine the precise versions of these jars.
The following procedure describes how to create a channel that provides additional artifacts for the MyFaces feature pack.
Prerequisite
- You have an account on the Red Hat Customer Portal and are logged in.
- You have reviewed the supported configurations for JBoss EAP 8.0.
- You have installed a supported JDK.
-
You have downloaded the
jboss-eap-installation-manager
. - Your JBoss EAP installation has a feature pack installed on it.
Procedure
-
Open the terminal emulator and navigate to the directory containing
jboss-eap-installation-manager
. Create a
manifest.yaml
file:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Deploy the manifest to a local repository:
mvn deploy:deploy-file -Dfile=manifest.yaml \ -DgroupId=com.example.channels -DartifactId=myfaces \ -Dclassifier=manifest -Dpackaging=yaml -Dversion=1.0.0 \ -Durl=file:/path/to/local/repository
mvn deploy:deploy-file -Dfile=manifest.yaml \ -DgroupId=com.example.channels -DartifactId=myfaces \ -Dclassifier=manifest -Dpackaging=yaml -Dversion=1.0.0 \ -Durl=file:/path/to/local/repository
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Subscribe your JBoss EAP server to the new channel:
./jboss-eap-installation-manager.sh channel add \ --channel-name myfaces-channel \ --repositories https://repo1.maven.org/maven2,file:/path/to/local/repository \ --manifest com.example.channels:myfaces \ --dir jboss-eap8
$ ./jboss-eap-installation-manager.sh channel add \ --channel-name myfaces-channel \ --repositories https://repo1.maven.org/maven2,file:/path/to/local/repository \ --manifest com.example.channels:myfaces \ --dir jboss-eap8
Copy to Clipboard Copied! Toggle word wrap Toggle overflow