JBoss Communications Platform 1.2 Platform Installation Guide



Similar documents
JBoss Developer Studio 3.0

Fuse ESB Enterprise 7.0 Installation Guide

Guide to Red Hat Enterprise Linux 6 Software Collections

JBoss Communications Platform 5.0 SIP Presence Service User Guide

Red Hat Enterprise Virtualization 3.0 User Portal Guide. Accessing and Using Virtual Machines from the User Portal Edition 1

JBoss Developer Studio 3.0

JBoss Developer Studio 3.0

Red Hat Enterprise Linux 6 Cluster Suite Overview. Overview of the High Availability Add- On for Red Hat Enterprise Linux 6

Red Hat JBoss Developer Studio 7.0 User Guide

JBoss Enterprise SOA Platform 5 ESB Tools Reference Guide. This guide is for developers Edition 5.3.1

JBoss Communications Platform 5.1 SIP Load Balancer User Guide

Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

JBoss Developer Studio 6.0

Discovery, Reporting, Capacity and Utilization Edition 1. ManageIQ Documentation Team

Red Hat Enterprise Linux OpenStack Platform 7 OpenStack Data Processing

JBoss Enterprise Data Services 5 Teiid Designer User Guide. for Developers Edition 5.3.1

JBoss Enterprise BRMS Platform 5 BRMS Business Process Management Guide

Red Hat Subscription Asset Manager 1.2 Installation Guide. Installing and Using Red Hat Subscription Asset Manager Edition 3

Red Hat Subscription Management All Subscription Docs Quick Registration for RHEL

Application Servers - BEA WebLogic. Installing the Application Server

Red Hat Directory Server 8.2 Using the Directory Server Console

TIBCO Fulfillment Provisioning Session Layer for FTP Installation

Red Hat Enterprise Linux 6 Logical Volume Manager Administration. LVM Administrator Guide

JBoss Enterprise Application Platform 4.3 Common Criteria Configuration Guide

JBoss Enterprise SOA Platform 5.2 Rule Flow Component Guide. for Business Rules Developers

TIBCO Hawk SNMP Adapter Installation

Fedora 20 Networking Guide

Fuse ESB Enterprise Installation Guide

24x7 Scheduler Multi-platform Edition 5.2

Practice Fusion API Client Installation Guide for Windows

Red Hat Enterprise Virtualization 3.2 Administration Guide

ovirt 3.0 Installation Guide

Core Protection for Virtual Machines 1

Simba XMLA Provider for Oracle OLAP 2.0. Linux Administration Guide. Simba Technologies Inc. April 23, 2013

Fedora 22 Networking Guide

AXIOM 4 AXIOM SERVER GUIDE

IUCLID 5 Guidance and support. Installation Guide Distributed Version. Linux - Apache Tomcat - PostgreSQL

Red Hat Enterprise Virtualization 3.0 Quick Start Guide

PMOD Installation on Linux Systems

JAMF Software Server Installation Guide for Linux. Version 8.6

Release Date May 10, Adeptia Inc. 443 North Clark Ave, Suite 350 Chicago, IL 60654, USA

Red Hat Enterprise Linux 7 High Availability Add-On Administration. Configuring and Managing the High Availability Add-On

VMware Horizon FLEX User Guide

User Manual - Help Utility Download MMPCT. (Mission Mode Project Commercial Taxes) User Manual Help-Utility

Virtual CD v10. Network Management Server Manual. H+H Software GmbH

Red Hat Developer Toolset 1.1

Postgres Enterprise Manager Installation Guide

UNICORN 6.4. Administration and Technical Manual

Red Hat Enterprise Virtualization 3.2 Installation Guide

TIBCO ActiveMatrix BusinessWorks Plug-in for TIBCO Managed File Transfer Software Installation

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

Canto Integration Platform (CIP)

Getting Started using the SQuirreL SQL Client

Installation Guide for FTMS and Node Manager 1.6.0

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

Installing Java. Table of contents

Oracle Product Data Quality

Copyright 2012 Trend Micro Incorporated. All rights reserved.

JBoss Enterprise Application Platform 6.2 Administration and Configuration Guide

TIBCO FTL Installation

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

OnCommand Performance Manager 1.1

Back-up Server DOC-OEMSPP-S/2014-BUS-EN-10/12/13

JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide

Server Monitoring. AppDynamics Pro Documentation. Version Page 1

UNICORN 7.0. Administration and Technical Manual

Install BA Server with Your Own BA Repository

JBoss Enterprise Application Platform 6

XenClient Enterprise Synchronizer Installation Guide

EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.

Oracle Endeca Information Discovery Integrator

JAMF Software Server Installation Guide for Windows. Version 8.6

VERSION 9.02 INSTALLATION GUIDE.

ADFS 2.0 Application Director Blueprint Deployment Guide

Install guide for Websphere 7.0

Counter-Strike Game Server Management Module

Kony MobileFabric. Sync Windows Installation Manual - WebSphere. On-Premises. Release 6.5. Document Relevance and Accuracy

PN Connect:Enterprise Secure FTP Client Release Notes Version

SC-T35/SC-T45/SC-T46/SC-T47 ViewSonic Device Manager User Guide

HP AppPulse Active. Software Version: 2.2. Real Device Monitoring For AppPulse Active

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

JBoss Enterprise Application Platform 5 Negotiation User Guide. for JBoss Enterprise Application Platform 5 Edition 5.2.0

Fedora 19. Fedora Documentation Project

Integration Service Database. Installation Guide - Oracle. On-Premises


Plesk 8.3 for Linux/Unix System Monitoring Module Administrator's Guide

JD Edwards EnterpriseOne

GoAnywhere Director to GoAnywhere MFT Upgrade Guide. Version: Publication Date: 07/09/2015

Novell Access Manager

Application Interface Services Server for Mobile Enterprise Applications Configuration Guide Tools Release 9.2

TIBCO Runtime Agent Authentication API User s Guide. Software Release November 2012

1z0-102 Q&A. DEMO Version

Enterprise Vault Installing and Configuring

Rational Application Developer Performance Tips Introduction

MarkLogic Server. Installation Guide for All Platforms. MarkLogic 8 February, Copyright 2015 MarkLogic Corporation. All rights reserved.

18.2 user guide No Magic, Inc. 2015

Transcription:

JBoss Communications Platform 1.2 Platform Installation Guide The JBoss Communications Platform Installation Guide Edition 1.2.11 Jared Morgan

JBoss Communications Platform 1.2 Platform Installation Guide The JBoss Communications Platform Installation Guide Edition 1.2.11 Jared Mo rgan Red Hat, Engineering Co ntent Services jmo rgan@redhat.co m

Legal Notice Copyright 2011 Red Hat Inc. T his document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the United States and other countries. Java is a registered trademark of Oracle and/or its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. T he OpenStack Word Mark and OpenStack Logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract T he JBoss Communications Platform (JBCP), is the first and only open source VoIP platform certified for JAIN SLEE 1.0 and SIP Servlets 1.1 compliance. JBCP serves as a high-performance core for Service Delivery Platforms (SDPs) and IP Multimedia Subsystems (IMSs) by leveraging J2EE to enable the convergence of data and video in Next-Generation Intelligent Network (NGIN) applications. JBCP enables the composition of predefined Service Building Blocks (SBBs) such as Call-Control, Billing, User- Provisioning, Administration and Presence-Sensing. Out-of-the-box monitoring and management of JBCP components is achieved through JMX Consoles. JSLEE allows popular protocol stacks such as SIP to be plugged in as Resource Adapters (RAs), and Service Building Blocks which share many similarities with EJBs allow the easy accommodation and integration of enterprise applications with end points such as the Web, Customer Relationship Management (CRM) systems and Service-Oriented Architectures (SOAs). T he JBCP is the natural choice for telecommunication Operations Support Systems (OSSs) and Network Management Systems (NMSs). In addition to the telecommunication industry, JBCP is suitable for a variety of problem domains demanding an Event-Driven Architecture (EDA) for high-volume, low-latency signaling, such as financial trading, online gaming, (RFID) sensor network integration, and distributed control.

Table of Contents Table of Contents. Preface........................................................................................... 3.......... 1. Document Conventions 3 1.1. T ypographic Conventions 3 1.2. Pull-quote Conventions 4 1.3. Notes and Warnings 5 2. We Need Feedback 5. Chapter......... 1... Installing.......... the.... Platform.................................................................. 7.......... 1.1. Java Development Kit: Installing, Configuring and Running 7 1.2. Installing, Configuring and Running 10 1.2.1. Pre-Install Requirements and Prerequisites 10 1.2.2. Downloading the JBoss Communications Platform 10 1.2.3. Installing JBCP 10 1.2.4. Setting the JBOSS_HOME Environment Variable 11 JBOSS_HOME does not need to be specified for the following binary packages: 11 1.2.5. Running 12 1.2.6. Server Configuration 13 1.2.7. Using 13 1.2.8. Stopping 13 1.2.9. Uninstalling 14. Revision......... History................................................................................. 15........... 1

2 JBoss Communications Platform 1.2 Platform Installation Guide

Preface Preface 1. Document Conventions T his manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information. In PDF and paper editions, this manual uses typefaces drawn from the Liberation Fonts set. T he Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later include the Liberation Fonts set by default. 1.1. Typographic Conventions Four typographic conventions are used to call attention to specific words and phrases. T hese conventions, and the circumstances they apply to, are as follows. Mono-spaced Bold Used to highlight system input, including shell commands, file names and paths. Also used to highlight keys and key combinations. For example: T o see the contents of the file m y_next_bestselling_novel in your current working directory, enter the cat m y_next_bestselling_novel command at the shell prompt and press Enter to execute the command. The above includes a file name, a shell command and a key, all presented in mono-spaced bold and all distinguishable thanks to context. Key combinations can be distinguished from an individual key by the plus sign that connects each part of a key combination. For example: Press Enter to execute the command. Press Ctrl+Alt+F2 to switch to a virtual terminal. T he first example highlights a particular key to press. T he second example highlights a key combination: a set of three keys pressed simultaneously. If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in m ono-spaced bold. For example: File-related classes include filesystem for file systems, file for files, and dir for directories. Each class has its own associated set of permissions. Proportional Bold T his denotes words or phrases encountered on a system, including application names; dialog box text; labeled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example: Choose System Preferences Mouse from the main menu bar to launch Mouse Preferences. In the Buttons tab, select the Left-handed m ouse check box and click Close to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand). 3

JBoss Communications Platform 1.2 Platform Installation Guide T o insert a special character into a gedit file, choose Applications Accessories Character Map from the main menu bar. Next, choose Search Find from the Character Map menu bar, type the name of the character in the Search field and click Next. T he character you sought will be highlighted in the Character T able. Double-click this highlighted character to place it in the T ext to copy field and then click the Copy button. Now switch back to your document and choose Edit Paste from the gedit menu bar. T he above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in proportional bold and all distinguishable by context. Mono-spaced Bold Italic or Proportional Bold Italic Whether mono-spaced bold or proportional bold, the addition of italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example: T o connect to a remote machine using ssh, type ssh username@ domain.name at a shell prompt. If the remote machine is example.com and your username on that machine is john, type ssh john@ exam ple.com. T he m ount -o rem ount file-system command remounts the named file system. For example, to remount the /home file system, the command is mount -o remount /home. T o see the version of a currently installed package, use the rpm -q package command. It will return a result as follows: package-version-release. Note the words in bold italics above username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system. Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example: Publican is a DocBook publishing system. 1.2. Pull-quote Conventions T erminal output and source code listings are set off visually from the surrounding text. Output sent to a terminal is set in mono-spaced roman and presented thus: books Desktop documentation drafts mss photos stuff svn books_tests Desktop1 downloads images notes scripts svgs Source-code listings are also set in m ono-spaced rom an but add syntax highlighting as follows: 4

Preface package org.jboss.book.jca.ex1; import javax.naming.initialcontext; public class ExClient { public static void main(string args[]) throws Exception { InitialContext inictx = new InitialContext(); Object ref = inictx.lookup("echobean"); EchoHome home = (EchoHome) ref; Echo echo = home.create(); System.out.println("Created Echo"); } } System.out.println("Echo.echo('Hello') = " + echo.echo("hello")); 1.3. Notes and Warnings Finally, we use three visual styles to draw attention to information that might otherwise be overlooked. Note Notes are tips, shortcuts or alternative approaches to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier. Important Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring a box labeled 'Important' will not cause data loss but may cause irritation and frustration. Warning Warnings should not be ignored. Ignoring warnings will most likely cause data loss. 2. We Need Feedback If you find a typographical error in this manual, or if you have thought of a way to make this manual better, submit a report in Bugzilla: http://bugzilla.redhat.com/bugzilla/ against the JBoss Communication Platform. When submitting a bug report, be sure to mention the manual's identifier: doc- Platform_Installation_Guide. If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding 5

JBoss Communications Platform 1.2 Platform Installation Guide text so we can find it easily. 6

Chapter 1. Installing the Platform Chapter 1. Installing the Platform T he Platform can be installed by downloading and installing the binary distribution. T his guide discusses how to install, run and configure the Platform from the binary distribution. 1.1. Java Development Kit: Installing, Configuring and Running T he JBCP platform is written in Java. A working Java Runtime Environment (JRE) or Java Development Kit (JDK) must be installed prior to running the server. The required version must be version 5 or higher. It is possible to run most JBCP servers, such as the JAIN SLEE Server, using a Java 6 JRE or JDK. However, the XML Document Management Server does not run on Java 6. JRE or JDK? Although JBCP servers are capable of running on the Java Runtime Environment, this guide assumes the audience is mainly developers interested in developing Java-based, JBCP-driven solutions. T herefore, installing the Java Development Kit is covered due to the anticipated audience requirements. 32-Bit or 64 -Bit JDK If the system uses 64-Bit Linux architecture, the 64-bit JDK is strongly recommended over the 32-bit version. T he following heuristics should be considered in determining whether the 64-bit Java Virtual Machine (JVM) is suitable: Wider datapath: the pipe between RAM and CPU is doubled, which improves the performance of memory-bound applications when using a 64-bit JVM. 64-bit memory addressing provides a virtually unlimited (1 exabyte) heap allocation. Note that large heaps can affect garbage collection. Applications that run with more than 1.5 GB of RAM (including free space for garbage collection optimization) should utilize the 64-bit JVM. Applications that run on a 32-bit JVM and do not require more than minimal heap sizes will gain nothing from a 64-bit JVM. Excluding memory issues, 64-bit hardware with the same relative clock speed and architecture is not likely to run Java applications faster than the 32-bit version. Note T he following instructions describe how to download and install the 32-bit JDK, however the steps are nearly identical for installing the 64-bit version. Downloading Download the Sun JDK 5.0 (Java 2 Development Kit) from Sun's website: http://java.sun.com/javase/downloads/index_jdk5.jsp. Click the Download link next to "JDK 5.0 Update <x>" (where <x> is the latest minor version release number). T he Sun website offers two download options: A self-extracting RPM (for example, jdk-1_5_0_16-linux-i586-rpm.bin) A self-extracting file (e.g. jdk-1_5_0_16-linux-i586.bin) If installing the JDK on Red Hat Enterprise Linux, Fedora, or another RPM-based Linux system, it is 7

JBoss Communications Platform 1.2 Platform Installation Guide recommended that the self-extracting file containing the RPM package is selected. T his option will set up and use the SysV service scripts in addition to installing the JDK. The RPM option is also recommended if the JBCP platform is being set up in a production environment. Installing T he following procedures detail how to install the Java Development Kit on Linux. Procedure 1.1. Installing the JDK on Linux Ensure the file is executable, then run it: ~]$ chmod +x "jdk-1_5_0_<minor_version>-linux-<architecture>-rpm.bin" ~]$./"jdk-1_5_0_<minor_version>-linux-<architecture>-rpm.bin" Setting up SysV Service Scripts for Non-RPM Files If the non-rpm self-extracting file is selected for an RPM-based system, the SysV service scripts can be configured by downloading and installing one of the -com pat packages from the JPackage project. Download the -com pat package that corresponds correctly to the minor release number of the installed JDK. T he compat packages are available from ftp://jpackage.hmdc.harvard.edu/jpackage/1.7/generic/rpms.non-free/. Important A -com pat package is not required for RPM installations. T he -com pat package performs the same SysV service script set up that the RPM version of the JDK installer does. Configuring Configuring the system for the JDK consists of two tasks: setting the JAVA_HOME environment variable, and ensuring the system is using the proper JDK (or JRE) using the alternatives command. Setting JAVA_HOME generally overrides the values for java, javac and java_sdk_1.5.0 in alternatives, however it is recommended to specify the value for consistency. Setting the JAVA_HOME Environment Variable on Linux After installing the JDK, ensure the JAVA_HOME environment variable exists and points to the location of the JDK installation. Setting the JAVA_HOME Environment Variable on Linux Determine whether JAVA_HOME is set by executing the following command: ~]$ echo $JAVA_HOME If JAVA_HOME is not set, the value must be set to the location of the JDK installation on the system. This can be achieved by adding two lines to the ~/.bashrc configuration file. Open ~/.bashrc (or create it if it does not exist) and add a line similar to the following one anywhere inside the file: 8

Chapter 1. Installing the Platform export JAVA_HOME="/usr/lib/jvm/jdk1.5.0_<version>" The changes should also be applied for other users who will be running the JBCP on the machine (any environment variables exported from ~/.bashrc files are local to that user). Setting java, javac and java_sdk_1.5.0 using the alternatives command Selecting the Correct System JVM on Linux using alternatives On systems with the alternatives command, including Red Hat Enterprise Linux and Fedora, it is possible to choose which JDK (or JRE) installation to use, as well as which java and javac executables should be run when called. As the superuser, call /usr/sbin/alternatives with the --config java option to select between JDKs and JREs installed on your system: home]$ sudo /usr/sbin/alternatives --config java There are 3 programs which provide 'java'. Selection Command ----------------------------------------------- 1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java 2 /usr/lib/jvm/jre-1.6.0-sun/bin/java * + 3 /usr/lib/jvm/jre-1.5.0-sun/bin/java Enter to keep the current selection[+], or type selection number: The Sun JDK, version 5, is required to run the java executable. In the alternatives information printout above, a plus (+) next to a number indicates the option currently being used. Press Enter to keep the current JVM, or enter the number corresponding to the JVM to select that option. As the superuser, repeat the procedure above for the javac command and the java_sdk_1.5.0 environment variable: home]$ sudo /usr/sbin/alternatives --config javac home]$ sudo /usr/sbin/alternatives --config java_sdk_1.5.0 Testing To ensure the correct JDK or Java version (5 or higher), and that the java executable is in the PATH environment variable, run the java -version command in the terminal from the home directory: home]$ java -version java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b03) Java HotSpot(TM) Client VM (build 1.5.0_16-b03, mixed mode, sharing) Uninstalling 9

JBoss Communications Platform 1.2 Platform Installation Guide It is not necessary to remove a particular JDK from a system, because the JDK and JRE version can be switched as required using the alternatives command, and/or by setting JAVA_HOME. Uninstalling the JDK on Linux On RPM-based systems, uninstall the JDK using the yum rem ove <jdk_rpm_nam e> command. 1.2. Installing, Configuring and Running 1.2.1. Pre-Install Requirements and Prerequisites Ensure that the following requirements have been met before continuing with the install. Hardware Requirements Sufficient Disk Space Once unzipped, the Platform binary release requires at least 310 MB of free disk space. Keep in mind that disk space requirements may change from release to release. Anything Java Itself Will Run On T he Platform, its bundled servers, resource adapters, and demonstration examples are 100% java.. T he Platform will run on the same hardware that the JBoss Application Server runs on. Software Prerequisites JDK 5 or Higher A working installation of the Java Development Kit (JDK) version 5 or higher is required in order to run the Platform's servers. Note that the JBoss Application Server is a runtime dependency of the Platform, and is included in the binary release. 1.2.2. Downloading the JBoss Communications Platform Follow Procedure 1.1, to download the 1.2.11 release of the JBoss Communications Platform. 1. Go to http://access.redhat.com. 2. Select the Downloads link. 3. Select the Download your software link. 4. Select Communications Platform from the dropbox. 5. Select 1.2.11 GA from the Version drop box. 6. Click the JBoss Com m unications Platform 1.2.11 GA link. 7. Click Download. 8. Select Open with Archive Manager and click ok. 1.2.3. Installing JBCP 1. When Archive Manager opens, click the Extract button. 2. Click the Create Folder button. 3. In the home directory, create a folder called JBCP-1.2.11. 10

Chapter 1. Installing the Platform 4. Click Extract. 1.2.4. Setting the JBOSS_HOME Environment Variable The Platform is built on top of the JBoss Application Server (JBoss AS). The JBOSS_HOME environment variable does not need to be set to run any of the Platform servers unless JBOSS_HOME is already set. Verifying if JBOSS_HOME is set on Linux T o determine whether JBOSS_HOME is set, execute the following command in a terminal. ~]$ echo $JBOSS_HOME T he Platform, and its individual servers, are built on top of the JBoss Application Server (JBoss AS). Files are installed onto a clean JBoss AS installation. T he build process assumes that the location referenced in the JBOSS_HOME environment variable is the JBoss AS installation into which the files must be installed. Important Always check JBOSS_HOME to verify if the environment variable is correctly defined for the system on which the server is installed. Potential troubleshooting may be avoided by performing this check. JBOSS_HOME does not need to be specified for the following binary packages: JBCP Platform. JBCP Server binary distributions that include the JBoss AS. For information regarding installing the JBoss AS, refer to the JBoss AS Installation Guide. Setting the JBOSS_HOME Environment Variable on Linux T he JBOSS_HOME environment variable must point to the directory which contains all of the files for the installed Platform or individual server. In the following procedure, install_directory_path refers to the server directory that contains a /bin subdirectory. Setting JBOSS_HOME in the ~/.bashrc startup script sets the environment variable for the current user each time the server starts. It is possible to set JBOSS_HOME as a system-wide environment variable, by specifying it in /etc/bashrc, but this method is not recommended. Procedure 1.2. Setting JBOSS_HOME on Linux 1. Navigate to the /hom e directory, and ensure that hidden files are visible (if using a GUI-based File Manager). 2. Open the.bashrc startup script in a text editor. 3. Append the following information on a separate line, ensuring the placeholder install location is substituted with the correct path: export JBOSS_HOME="/home/<username>/<install_directory_path>" 11

JBoss Communications Platform 1.2 Platform Installation Guide 4. Save and close the.bashrc startup script. 5. Execute the following command to apply the changes to the environment variable to the current session. T erminals open prior to altering.bashrc must have this command executed within each instance for the changes to take effect. ~]$ source ~/.bashrc 6. Execute the following command to verify that JBOSS_HOME is set in the current session, and points to the correct location. ~]$ echo $JBOSS_HOME /home/<username>/jbcp-1.2.11/jboss-eap-<version>/jboss-as Note In the sample output, JBOSS_HOME has been set correctly to the install_directory of the installation. T he returned path will be similar for standalone server binaries. 1.2.5. Running In the Linux terminal, the Platform has started successfully if the last line of output is similar to the following (ending with Started in 25s:527ms ): 16:29:15,442 INFO [ManagementConsole] JBCP Management Console initialized 16:29:15,551 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 16:29:15,586 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 16:29:15,622 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 25s:527ms Procedure 1.3. Running the Platform on Linux 1. Change the working directory to installation directory (the one in which the zip file's contents was extracted to). downloads]$ cd ~/"JBCP-1.2.11" 2. (Optional) Ensure that the bin/run.sh start script is executable. JBCP-1.2.11]$ chmod +x bin/run.sh 3. Execute the run.sh Bourne shell script. JBCP-1.2.11]$./bin/run.sh 12

Chapter 1. Installing the Platform Note Instead of executing the Bourne shell script to start the server, the run.jar executable Java archive can be executed from the bin directory: JBCP-1.2.11]$ java -jar bin/run.jar 1.2.6. Server Configuration T he JBoss Communications Platform ships with four server configurations. You can choose which configuration to start by passing the -c parameter to the server startup script. For instance, command run.sh -c all would start the server in the all configuration. Each configuration is contained in a directory named jboss-as/server/[config name]/. You can look into each server configuration's directory to see the default services, applications, and libraries supported in the configuration. T he minimal configuration starts the core server container without any of the enterprise services. This is a good starting point if you want to build a customized version of JBoss AS that only contains the servers you need. T he default configuration is the most commonly used configuration for application developers. It supports the standard J2EE 1.4 and most of the Java EE 5.0 programming APIs (e.g. JSF and EJB3). T he all configuration is the default configuration with clustering support and other enterprise extensions. T he production configuration is based on the all configuration but with key parameters pre-tuned for production deployment. 1.2.7. Using T he Platform can be observed and controlled using the Management Console, which is started along with the server. Refer to the JAIN SLEE Server User Guide for detailed information regarding configuring the Platform with the Management Console. 1.2.8. Stopping Detailed instructions for stopping the Platform are given below, arranged by platform. If the server is correctly stopped, the following three lines are displayed as the last output in the Linux terminal or Command Prompt: 16:44:29,745 INFO [Server] Shutdown complete Shutdown complete Halting VM Procedure 1.4. Stopping the Platform on Linux 1. Change the working directory to the binary distribution's install directory. ~]$ cd "JBCP-1.2.11" 2. (Optional) Ensure that the bin/shutdown.sh start script is executable: JBCP-1.2.11]$ chmod +x bin/shutdown.sh 3. Run the shutdown.sh executable Bourne shell script with the -S option (the short option for -- 13

JBoss Communications Platform 1.2 Platform Installation Guide shutdown) as a command line argument: JBCP-1.2.11]$./bin/shutdown.sh -S Note The shutdown.jar executable Java archive with the -S option can also be used to shut down the server: JBCP-1.2.11]$ java -jar bin/shutdown.jar -S 1.2.9. Uninstalling T o uninstall the Platform, delete the directory containing the extracted binary distribution. 14

Revision History Revision History Revision 1.2.11-30.33.4 00 2013-10-30 Rüdiger Landmann Rebuild with publican 4.0.0 Revision 1.2.11-30.33 July 24 2012 Ruediger Landmann Rebuild for Publican 3.0 Revision 8.0-0 Wed May 4 2011 T om Wells 1.2.11 release of Installation Guide. Revision 7.0-0 Fri Jan 28 2011 T om Wells 1.2.10 release of Installation Guide. Revision 6.0-0 T hu Dec 2 2010 T om Wells 1.2.9 release of Installation Guide. Revision 5.0-0 Mon Sep 13 2010 T om Wells 1.2.8 release of Installation Guide. Revision 4.0-0 Fri Aug 6 2010 Jared Morgan 1.2.7 release of Installation Guide. Revision 3.0-0 T hu Jun 11 2009 Jared Morgan Overarching installation guide specifically targeting the JBCP Binary download from the Red Hat Portal. Revision 2.0-0 Fri Mar 06 2009 Douglas Silas First release of the "parameterized", and much-improved JBCP documentation. 15