You can install the Multi-Channel Server (MCS)
software for Microsoft SQL Server 2005 Enterprise Edition SP2 or SQL Server 2008.
Before you begin
- Make sure that you have unpacked wp.mobile.zip and
created the install images as described in the Performing required
steps before Mobile Portal Accelerator topic.
About this task
When installing
MCS,
be aware of the following issues:
- Use the SQL Server Management Studio when performing
this installation procedure.
- For Multi-Channel Server 6.3.1 to
work with the Microsoft SQL Server 2005 Enterprise Edition SP2 or SQL Server 2008 Database,
the following JDBC drivers can be used:
Perform the following steps to install MCS software
for Microsoft SQL Server 2005 Enterprise Edition SP2 or SQL Server 2008.
Procedure
- Create the MCS database. Run the following command sequence:
Note: When creating this
database, choose Case Insensitive.
use master;
go
create database MCSDB collate SQL_Latin1_General_CP1_CI_AS;
- Create the login account for the database. Run the following command sequence:
use master;
go
CREATE LOGIN MCSDBUSR WITH PASSWORD = 'password';
Where password is any valid database
password.
- Grant access to the database. Run
the following command sequence:
use MCSDB;
exec sp_grantdbaccess @loginame = 'MCSDBUSR';
exec sp_addrolemember @rolename = 'db_owner' , @membername = 'MCSDBUSR';
go
- In the create_vm_tables.sql script
file, add the prefix MCSDBUSR to all of the table
names. For example:
CREATE TABLE MCSDBUSR.VMAPPLICATIONPROPERTIES
Note: The
create_vm_tables.sql script
file is in the
wp_root/wp.mobile/wp.mobile.mcs/repository/mssql directory.
If
the database is installed on a remote server, copy create_vm_tables.sql to
this remote database server.
- In the create_mdpr_tables.sql script
file, add the prefix MCSDBUSR to all of the table
names. For example:
CREATE TABLE MCSDBUSR.VMAPPLICATIONPROPERTIES
Note: The
create_mdpr_tables.sql script
file is in the
wp_root/wp.mobile/wp.mobile.mcs/repository/mssql directory.
If
the database is installed on a remote server, copy create_vm_tables.sql to
this remote database server.
- In the SQL Server Management Studio, right-click to run the create_vm_tables.sql script
file and create_mdpr_tables.sql script file.
- Change your working directory to:wp_profile_root/ConfigEngine
- Run the following command:
ConfigEngine init mcs-deploy-mcs
-DMcsRepositoryType=odbc
-DMcsDbVendor=mssql-jdbcdriver
-DMcsDbHost=hostname
-DMcsDbPort=1433
-DMcsDbSource=mcsdb
-DMcsDbUser=mcsusername
-DMcsDbPassword=pwd
-DMcsProject=mobile-portal
Note: - Your particular command can vary depending on your configuration.
You must, however, specify mobile-portal as the project name.
- Use port number is 1433.
In this example,
- jdbcdriver
- depends on which driver is used; for example, enter jsql for
the NetDirect driver or 2005 for the Microsoft 2005
driver
- hostname
- is the fully qualified host name of the database server
- mcsdb
- is the name of the MCS database
- mcsusername
- is the user ID of the SqlServer instance user
- pwd
- is the SqlServer instance password for the MCS database
- Edit the repository batch files.
- Go to wp_root/wp.mobile/wp.mobile/wp.mobile.mcs/repository/bin.
- Edit the drManager batch file or shell script to add
the JDBC class path.
- Add the JDBC driver class path to the ImportPolicies
script to add JDBC driver class path.
For example:
JDBC_DRIVER=C:/sqljdbc4.jar
- Add the JDBC driver class path to the mcsImport script.
For example:
JDBC_DRIVERC:/sqljdbc4.jar
For
example, in Windows with an MS-SQL database:
echo off
set CLASSPATH=C:/IBM/WebSphere/PortalServer\wp.mobile\wp.mobile.mcs\repository\lib\com.volantis.mcs.classpath.cli-6.3.0.ibm-9_0.jar;.
%JAVA_HOME%\bin\java -Xmx512m -Djava.rmi.server.useCodebaseOnly=true -cp %CLASSPATH% com.volantis.devices.repository.manager.cli.DeviceRepositoryManager %DEFAULT_ARGS% %* --jdbc-driver-path c:\sqljdbc4.jar --jdbc-project mobile-portal --jdbc-vendor mssql-2005 --jdbc-host wpmintel07.in.ibm.com --jdbc-port 1433 --jdbc-source mcs3 --jdbc-user MCSUSR1 --jdbc-password Wemp4you
Note: If
using the Microsoft SQL Server 2005 Enterprise Edition SP2 or SQL Server 2008 JDBC
driver, replace JSQLConnect with sqljdbc4.
- Verify the wp_root/wp.mobile/wp.mobile.mcs/repository/bin/ImportPolicies.bat file
for the following settings:
SET DEFAULT_ARGS=-vendor mssql-jdbcdriver -host hostname -port 1433 -source mcsdb -user mcsusername -password pwd -updateall -enableundo
- Import the default device policies from wp_profile_root/ConfigEngine. Run the following command:
ConfigEngine init mcs-import-devices -DMcsProject=mobile-portal
- Verify that the import was successful (open the wp_root/log/ConfigTrace.log to
view the results).
- Add the location of the JDBC driver to the MCSLib Shared
Library:
- Log in to the WebSphere® Application Server Integrated Solutions Console.
- Click .
- In the Classpath field,
add entries for your JDBC driver.
An example entry follows.
C:\sqlserver\JSQLConnect.jar
Note: If
using the Microsoft driver, use the following path: C:\sqlserver\sqljdbc4.jar.
- Click Apply.
- Save the configuration changes.
- Restart the portal
server using the following commands:
where server_name is the
name of the WebSphere Application Server instance
(for example, WebSphere_Portal).
What to do next
After you install
MCS on
your
WebSphere Portal server,
proceed to the topic
Installing Mobile Portal Accelerator extensions.