This chapter lists prerequisite software that must already be installed on your system and explains procedures that you must follow to install the Sun Java System Mobile Enterprise Platform 1.0 server-side software. Chapter 3, Setting Up and Running the MusicDB Sample Application, explains how to set up and run the MusicDB client application to verify that your installation was successful.
The MEP software has been tested with the following operating systems:
Solaris 10 (SPARC and x86)
Red Hat Enterprise Linux 4
Microsoft Windows (XP Professional and Server 2003)
Download the MEP installation bundle appropriate for your operating system and the MEP client bundle.
The MEP 1.0 FCS bundle contains the MEP Gateway, Sun Java System Application Server 9.1 Update 2, and Sun JCA Adapters.
The MEP 1.0 FCS client bundle includes the following items:
API documentation for both the Mobile Client Business Object (MCBO) API and the Enterprise Connector Business Object (ECBO) API
Secure MusicDB and Secure Siebel sample clients for the Palm and Blackberry mobile devices
Sources for the Secure MusicDB and Secure Siebel sample client applications and the MusicDB sample Enterprise Connector
Before you install the MEP software, ensure that the following software has already been installed:
Java Platform, Standard Edition 6 (JDK 6)
You can download JDK 6 from http://java.sun.com/javase/downloads/index.jsp.
If you are going to use the MEP software with a back-end system, such as Siebel EAI, SAP BAPI, or Oracle Applications, the back-end software must be installed, configured, and operational before you begin the MEP installation. The back-end software must be installed on a different system from the one on which you install the MEP software.
Database to use for MEP Sync database (MySQL or Oracle)
MEP 1.0 can be used with MySQL 5.0 Community Server or Oracle 10g Release 2. The database does not need to be installed on the same system as the MEP software.
If you are using MySQL 5.0 Community Server, enable TCP/IP networking when you configure the MySQL database. During the MEP installation, you will be prompted for the username and password for the MySQL database administrator account so the installer can create the databases and database users required by the MEP software.
You can download the MySQL database software appropriate for your operating system from http://www.sun.com/software/products/mysql/getit.jsp.
If you are using Oracle 10g Release 2, it is recommended that you install the database on a different system from the one on which you install the MEP software. Only one MEP installation can use the database.
You can download the Oracle database software appropriate for your operating system from http://www.oracle.com/technology/software/products/database/index.html. Before you can install the MEP software and use Oracle as a database, you must complete the configuration steps in Configuring Oracle Databases and Database Users for Use with the MEP Software.
(Optional) Sun Java Wireless Toolkit 2.5.2 for CLDC
You can use the Wireless Toolkit (WTK) to run a client emulator to validate your MEP installation. Download the WTK from http://java.sun.com/javame/downloads/index.jsp. The WTK runs on Windows and Linux X86 systems only.
In addition, ensure that your JAVA_HOME environment variable has been set.
The following sections explain how to perform two types of installation:
Single-tier install, in which all of the MEP software is installed on one system
Two-tier install, in which the MEP Gateway engine is installed on the first system and the other MEP components, including the web service endpoint, enterprise connectors, and Sun JCA adapters are installed on a second system.
Complete the following steps to install all of the MEP components in a single tier.
If you are installing on a Solaris system, log in as root or use the sudo command.
Use the sudo command if you are installing on a Linux system.
Unzip the sjsmep-1_0-fcs-<operating_system>.zip installation bundle appropriate for your operating system.
If you are using Oracle, download ojdbc14.jar, the Oracle JDBC driver, from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html. Place this JAR file in the lib subdirectory under the top-level directory where you unzipped the MEP installation bundle.
Change to the directory where you unzipped the installation bundle and type the command to start the installation and run the installer appropriate for your operating system:
install-solaris.sh on Solaris
install-linux.sh on Linux
install-windows.bat on Windows
When you are prompted to select the installation type (single tier, tier1, or tier2), select “1” to perform a single-tier installation.
The first step in the MEP installation process is to install Application Server 9.1 Update 2:
When you are prompted to install the Application Server, type “y”.
When you are prompted to display the Software License, press Enter.
When you are prompted to accept the Software License, type “yes”.
When you are prompted to accept the default location of the installation directory, press Enter. If you want to install the Application Server in another location, type the full path to that directory then press Enter.
If the directory does not exist, type “1” to create the directory or “2” to choose a new directory, then press Enter.
If the installer finds a suitable Java SDK installation, it displays that installation directory as the default. If the default is a valid JDK 6 installation directory, press Enter to accept that installation directory or type the full path name of another JDK 6 installation.
When you are prompted for the admin user name, type the administrator user name or press Enter to accept the default (admin).
When you are prompted for the admin user's password, type the password then reenter it when you are prompted to do so.
When you are prompted to store the username and password in a file in your home directory, press Enter or type “yes”.
When you are prompted to accept or override the initial Application Server port settings (Admin port, HTTP port, HTTPS port), press Enter.
When you are prompted to add the bin directory to the PATH, press Enter or type “yes”.
When you are prompted to enable the Update Center client, press Enter or type “yes”.
If you are prompted to create a Windows service, press Enter or type “no”.
When you are prompted to create a desktop shortcut to the autodeploy directory, press Enter or type “no”.
When you are prompted to upgrade from a previous version of the Application Server, press Enter or type “no”.
When you are prompted to install now, start over, or exit the installation, type “1” to install the Application Server.
When you are prompted, press Enter to exit the installation program that just completed.
The next step in the MEP installation process is to install the MEP software:
When you are prompted, press Enter or type the full path to the Application Server installation directory.
When you are prompted to review the product license, press Enter.
Press Enter repeatedly as you page through the license.
When you are prompted to accept the license, type “y” or “yes”.
When you are prompted to select the database, type “1” for MySQL or “2” for Oracle, then press Enter.
If you select Oracle, you must have completed the steps in Configuring Oracle Databases and Database Users for Use with the MEP Software before you can proceed with the installation.
When you are prompted, type the database host name or press Enter to accept the default (localhost).
When you are prompted, type the database access port or press Enter to accept the default.
The default is 3306 on MySQL and 1521 on Oracle.
When you are prompted, type the database JDBC driver class or press Enter to accept the default.
The default is mysql.jdbc.Driver on MySQL and oracle.jdbc.OracleDriver on Oracle.
If you selected MySQL, when you are prompted, type the userid of the database administrator account.
On MySQL, the userid is usually root.
If you selected MySQL, when you are prompted, type the password for the root account (or database administrator account).
If you are using MySQL, the installer creates all of the necessary databases, users, and tables. No action is needed on your part.
When you are prompted to delete domain1, type “y” or “yes”.
When you are prompted, press Enter or type the name for the new Application Server domain. The default is “mep”.
When you are prompted, press Enter or type the Admin Port for the new domain. The default is “4848”.
When you are prompted, press Enter or type the HTTP port for the new domain. The default is “8080”.
When you are prompted, press Enter or type the HTTPS port for the new domain. The default is “8181”.
When you are prompted, press Enter or type the admin password for the new domain. The default is “syncpass”.
The installer configures the new domain. No action is needed on your part.
When the installation completes successfully, the following message is displayed:
Install was successful BUILD SUCCESSFUL
Complete the following tasks to perform a two-tier installation, which installs the MEP Gateway engine on the first tier, the Gateway tier, and the other MEP components including the web service endpoint, enterprise connectors, and Sun JCA adapters, on the second tier, the Enterprise tier:
On the first system, the Gateway tier system, complete steps 1 through 3 in Performing a Single-Tier Installation .
Change to the directory where you unzipped the installation bundle and type the command to start the installation. Type the command that is appropriate for your operating system:
installer-solaris.sh on Solaris
installer-linux.sh on Linux
installer-windows.bat on Windows
When you are prompted to select the installation type (single tier, tier1, or tier2), select “2” to install tier1 of a two-tier installation.
Perform step 6, installing the Application Server, in Performing a Single-Tier Installation.
Perform steps 7a through 7o in Performing a Single-Tier Installation.
When you are prompted to begin the tier 1 configuration, type “y” and press Enter, then type “y” and press Enter again.
When you are prompted to use an HTTPS connection, type “y” and press Enter or type “n” and press Enter to use an HTTP connection instead.
You are prompted to identify the host name and port number for the endpoint URL to the web service that will be installed on the system in the second tier. The web service uses the Sun JCA adapters configured on the system in the second tier that connects to the back-end system.
When you are prompted for the host name, type the host name of the tier2 system and press Enter.
When you are prompted for the port number, press Enter or type the port number for the tier2 system.
If are using an HTTPS connection, the default is ”8181”. If are using an HTTP connection, the default is “8080”.
When you are prompted to confirm or correct the endpoint URL, check the URL that is displayed.
If the correct host name and port number are displayed, press Enter.
If either the host name or the port number, or both, are incorrect, retype the entire URL using the correct host name and port number, then press Enter.
When the tier1 installation completes successfully, the following message is displayed:
Install was successful BUILD SUCCESSFUL
On the second system, the Enterprise tier system, complete steps 1 through 3 in Performing a Single-Tier Installation .
Change to the directory where you unzipped the installation bundle and type the command to start the installation. Type the command that is appropriate for your operating system:
installer-solaris.sh on Solaris
installer-linux.sh on Linux
installer-windows.bat on Windows
When you are prompted to select the installation type (single tier, tier1, or tier2), select “3” to install tier2 of a two-tier installation.
Perform step 6, installing the Application Server, in Performing a Single-Tier Installation.
Perform steps 7a through 7o in Performing a Single-Tier Installation.
When you are prompted to begin the tier2 installation, type “y” or “yes” and press Enter. You may need to do this twice.
When the tier2 installation completes successfully, the following message is displayed:
BUILD SUCCESSFUL
If you installed the MEP software in two tiers and you elected to use an HTTPS connection, follow the instructions in Chapter 2, Establishing Trust, to establish trust between the gateway and enterprise tiers.
After successfully installing the MEP software, and optionally establishing trust between the gateway and enterprise tiers, follow the instructions in Chapter 3, Setting Up and Running the MusicDB Sample Application, to install, deploy, and run the MusicDB client application using the WTK client emulator software. This will verify that your MEP software components are working correctly.
Before you can install and use the MEP software, you must complete the following tasks:
You need to manually create the gwdb and musicdb databases before you can select Oracle as your database during the MEP installation.
To create the gwdb and musicdb databases, complete the following steps:
Start the Database Configuration Assistant (DBCA) utility.
On the Operations screen, select the Create a Database radio button and click Next.
On the Database Template screen, select the General Purpose radio button and click Next.
On the Database Identification screen, specify “gwdb” in the Global Database Name field and accept the default SID setting, which is also “gwdb”. Click Next.
On the Management Options screen, accept the default settings and click Next.
On the Database Credentials screen, select the Use the Same Password for All Accounts radio button. Type any password, such as gwdb, in the Password and Confirm Password fields, then click Next.
On the Storage Options screen, accept the default settings, then click Next.
On the Database File Locations screen, accept the default settings, then click Next.
On the Recovery Configuration screen, accept the default settings, then click Next.
On the Database Content screen, accept the default settings, then click Next.
On the Initialization Parameters screen, select the Character Sets tab.
Select the radio button labeled “Choose from the list of character sets”, then select UTF8 from the menu. Click Next.
On the Database Storage screen, click Next.
On the Creation Options screen, accept the default setting of Create Database, then click Finish.
On the Confirmation screen, click OK.
DBCA creates and starts the Oracle database instance and completes the database creation.
Repeat steps 1–15 for the musicdb database, replacing “gwdb” with “musicdb” in step 4 and step 6.
You must create a database user for each database.
To create a user for the musicdb database instance, complete the following steps.
Log in as the Oracle user.
In a terminal window, type the following command:
setenv ORACLE_SID musicdb |
In a terminal window, type the following command:
sqlplus / as sysdba |
After some messages are displayed, the SQL prompt is displayed.
Type the following command to create musicdbuser:
SQL> create user musicdbuser identified by musicdbpass; |
Type the following command to grant privileges to musicdbuser:
SQL> grant connect, resource to musicdbuser; |
Type the following command to log out of sqlplus:
SQL> quit |
To create a user for the gwdb database instance, complete the following steps.
In a terminal window, type the following command:
setenv ORACLE_SID gwdb |
In a terminal window, type the following command:
sqlplus / as sysdba |
After some messages are displayed, the SQL prompt is displayed.
Type the following command to create gwdbuser:
SQL> create user gwdbuser identified by gwdbpass; |
Type the following command to grant privileges to settingsdbuser:
SQL> grant connect, resource to gwdbuser; |
Type the following command to log out of sqlplus:
SQL> quit |
The lsnrctl utility manages the Oracle listener processes, which enable database applications to connect to specific Oracle database instances through SQLPlus. Refer to your Oracle documentation on how to configure and setup the listener.ora and tnsname.ora configuration files for the lsnrctl utility.
Log in as the Oracle user.
Type the following command to enter the lsnrctl shell:
$ lsnrctl |
Type the following command to start up the listener:
LNSRCTL> startup |
Type the following command to see the status of the listener process:
LNSRCTL> status |
Type the following command to exit the lsnrctl shell:
LSNRCTL> exit |
To connect to the gwdb and musicdb databases as the database as gwdbuser and musicdbuser database users, complete the following steps after you start the Oracle listener.
Log in as the Oracle user.
In a terminal window, type the following command to connect to the gwdb database:
$ sqlplus gwdbuser/gwdbpass@gwdb |
Type the following command to connect to the musicdb database:
$ sqlplus musicdbuser/musicdbpass@musicdb |
Complete the following steps to uninstall the Application Server and MEP 1.0 software.
If you are on a system running the Solaris operating system, log in as root or use the sudo command.
If you are on a Linux system, use the sudo command.
Change to your AS_HOME directory.
Execute the ./uninstall command.
The Application Server and MEP 1.0 software are both uninstalled.
Drop all tables, databases, and users that were created for MEP.