20.2. Patching a Standalone Container
systemfolder. When the patch is applied, the container's configuration is changed so that it points to the patched artifacts instead of the artifacts from the original installation. This makes it easy for the system to be restored to its original state or to selectively back out patches.
Applying a patch
- Add the patch to the container's environment using the patch:add command.Example 20.1, “Adding a Patch to a Broker's Environment” shows the command for adding the patch contained in the patch file
patch.zipfrom the local file system.
Example 20.1. Adding a Patch to a Broker's Environment
patch:add file://patch.zipThis command copies the specified patch file to the container's
systemfolder and unpacks it.
- Simulate installing the patch using the patch:simulate command.This will generate a log of the changes that will be made to the container when the patch is installed, but will not make any actual changes to the container.NoteThe patch:list command displays a list of all patches added to the container's
- Review the simulation log to understand the changes that will be made to the container.
- Apply the patch to the container using the patch:install command.WarningRunning patch:install before the container is fully started and all of the bundles are active will cause the container to hang.NoteThe patch:list command displays a list of all patches added to the container's
- Shut down the container that you just applied the patch to.
- The extracted patch archive contains the
manual_stepsdirectory. Copy the content of the
manual_steps/directory to the appropriate directory (
lib) in the JBoss Fuse 6.1 installation directory. Copy the content in the
manual_steps/fabric-system-updates/systemdirectory to the
systemdirectory in the JBoss Fuse installation directory. This is the system repository that contains some patched artifacts.
- Start the container. If you are using a remote console, you will lose the connection to the container. If you are using the container's local console, it will automatically reconnect when the container restarts.
Rolling back a patch
Example 20.2. Rolling Back a Patch