Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Installing modules with JBoss cartridges


From version 7 of the JBoss application server, class loading is based on the JBoss Modules project. In this recipe, you will learn how to install the Twitter4J library as a module on the JBoss EAP 6 cartridge. The modules directory under the JBoss server home houses all the modules installed on the application server.

The source code for the application created in this recipe is on GitHub at https://github.com/OpenShift-Cookbook/chapter7-recipe4.

Getting ready

This recipe builds on the application created in the Creating and deploying Java EE 6 applications using the JBoss EAP and PostgreSQL 9.2 cartridges recipe. So, please refer to that recipe before continuing with this recipe.

How to do it…

Perform the following steps to install the Twitter4J library as a module:

  1. Create the OpenShift application created in the Creating and deploying Java EE 6 applications using the JBoss EAP and PostgreSQL 9.2 cartridges recipe using the following command:

    $ rhc app...