Top Banner
Kony MobileFabric™ Sync Server Tomcat Installation - Manual On-Premises Release 7.2 Document Relevance and Accuracy This document is considered relevant to the Release stated on this title page and the document version stated on the Revision History page. Remember to always view and download the latest document version relevant to the software release you are using. © 2016 by Kony, Inc. All rights reserved 1 of 54
54

Kony MobileFabric Sync Tomcat Installation Guide - Manual

Feb 02, 2017

Download

Documents

dinhnhan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabrictrade

Sync Server Tomcat Installation -Manual

On-Premises

Release 72

Document Relevance and Accuracy

This document is considered relevant to the Release stated on this title page and the document version stated on the Revision History pageRemember to always view and download the latest document version relevant to the software release you are using

copy 2016 by Kony Inc All rights reserved 1 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Copyright copy 2013 Kony Inc

All rights reserved

October 2016

This document contains information proprietary to Kony Inc is bound by the Kony license

agreements andmay not be used except in the context of understanding the use andmethods of

Kony Inc software without prior express written permission Kony Empowering Everywhere Kony

Nitro and Kony Visualizer are trademarks of Kony Inc MobileFabric is a registered trademark of

Kony Inc Microsoft theMicrosoft logo Internet Explorer Windows andWindowsVista are

registered trademarks of Microsoft Corporation Apple the Apple logo iTunes iPhone iPad OS X

Objective-C Safari Apple Pay AppleWatch and Xcode are trademarks or registered trademarks of

Apple Inc Google the Google logo Android and the Android logo are registered trademarks of

Google Inc Chrome is a trademark of Google Inc BlackBerry PlayBook Research inMotion and

RIM are registered trademarks of BlackBerry SAPreg and SAPreg Business Suitereg are registered

trademarks of SAP SE in Germany and in several other countries All other terms trademarks or

servicemarksmentioned in this document have been capitalized and are to be considered the

property of their respective owners

copy 2016 by Kony Inc All rights reserved 2 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Revision History

Date DocumentVersion

Description of Modifications Release

10202016 14 Document updated for release 72

07122016 13 Appended a new section Upgrade Tomcat from 70x

to 71x

Document release for 71

06102016 12 Appended a new section Upgrade Tomcat from 56x

to 70x

05122016 11 Removed Required Setup files section in

Prerequisites

03222016 10 Document release for 70

copy 2016 by Kony Inc All rights reserved 3 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Table of Contents

1 Preface 6

11 Purpose 6

12 Intended Audience 6

13 Formatting conventions used in this guide 7

14 Contact Us 8

2 Prerequisites 9

21 Hardware Requirements (per physical instance) 9

22 Software SystemRequirements (per physical instance) 10

3 Setting Up Tomcat for Kony MobileFabric Sync 11

31 Install Tomcat 11

32 Add Driver Jars 11

33 Creating SyncConsole Database 12

34 Setting up SyncHomeDirectory 12

35 Creating Datasource and Configuring JNDI and Hibernate Dialect 14

4 Deploying SyncConsole Application 21

5 Deploying SyncServices Application 23

51 Steps To Add SSLCertificate in SyncServer 24

6 Upgrading Kony MobileFabric Sync Manually 27

61 Upgrading Tomcat Manually from 55x 56x to 65x 29

62 Upgrading Tomcat Manually from 56x to 70x 37

copy 2016 by Kony Inc All rights reserved 4 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x 41

64 Upgrading Tomcat Manually from 70x to 71x 44

7 Appendix Setting Up Multiple Sync Home Directories 54

copy 2016 by Kony Inc All rights reserved 5 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Preface

There are two important components of KonyMobileFabric Sync Framework - SyncManagement

Console and Sync Services

Sync Management Console provides a single point of control for monitoring and configures the Kony

MobileFabric Sync console creation process including data integration storage and analysis By

using web based user interface the console requires less training time reduces the number of steps

involved in administration The console provides an opportunity to uphold standard operating

procedures andminimizemanual work by enabling repeatable processes

Sync Services are the services that synchronize data between Client and Enterprise Data Source bi-

directionally

Important Kony recommends using theMobileFabric Installer for deployingMobileFabric 70

onwards

If you are required to install MobileFabricmanually due to your business rules and policies please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artifacts Manual installs not approved by Konywill not be supported

11 Purpose

This document provides instructions for installing and configuring KonyMobileFabric Sync Server on

Tomcat

12 Intended Audience

This document is intended for Administrators and Developers responsible for installing and configuring

KonyMobileFabric Sync Server It is assumed that the reader of this document is familiar with

deploying software on Java application serversWebLogic application server and installing database

software

copy 2016 by Kony Inc All rights reserved 6 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

13 Formatting conventions used in this guide

The following formatting conventions are used throughout the document

Click here

Convention Explanation

Monospace n User input text system prompts and responses

n File Path

n Commands

n Program Code

n File Names

Italic n Emphasis

n Names of Books and Documents

n New Terminology

Bold n Windows

n Menus

n Buttons

n Icons

n Fields

n Tabs

URL Active link to a URL

Note Provides helpful hints or additional information

copy 2016 by Kony Inc All rights reserved 7 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Convention Explanation

Important Highlights actions or information that might cause problems to

systems or data

14 Contact Us

Wewelcome your feedback on our documentationWrite to us at techpubskonycom For technical

questions suggestions comments or to report problems on Kony product line contact

prodsupportkonycom

copy 2016 by Kony Inc All rights reserved 8 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 2: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Copyright copy 2013 Kony Inc

All rights reserved

October 2016

This document contains information proprietary to Kony Inc is bound by the Kony license

agreements andmay not be used except in the context of understanding the use andmethods of

Kony Inc software without prior express written permission Kony Empowering Everywhere Kony

Nitro and Kony Visualizer are trademarks of Kony Inc MobileFabric is a registered trademark of

Kony Inc Microsoft theMicrosoft logo Internet Explorer Windows andWindowsVista are

registered trademarks of Microsoft Corporation Apple the Apple logo iTunes iPhone iPad OS X

Objective-C Safari Apple Pay AppleWatch and Xcode are trademarks or registered trademarks of

Apple Inc Google the Google logo Android and the Android logo are registered trademarks of

Google Inc Chrome is a trademark of Google Inc BlackBerry PlayBook Research inMotion and

RIM are registered trademarks of BlackBerry SAPreg and SAPreg Business Suitereg are registered

trademarks of SAP SE in Germany and in several other countries All other terms trademarks or

servicemarksmentioned in this document have been capitalized and are to be considered the

property of their respective owners

copy 2016 by Kony Inc All rights reserved 2 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Revision History

Date DocumentVersion

Description of Modifications Release

10202016 14 Document updated for release 72

07122016 13 Appended a new section Upgrade Tomcat from 70x

to 71x

Document release for 71

06102016 12 Appended a new section Upgrade Tomcat from 56x

to 70x

05122016 11 Removed Required Setup files section in

Prerequisites

03222016 10 Document release for 70

copy 2016 by Kony Inc All rights reserved 3 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Table of Contents

1 Preface 6

11 Purpose 6

12 Intended Audience 6

13 Formatting conventions used in this guide 7

14 Contact Us 8

2 Prerequisites 9

21 Hardware Requirements (per physical instance) 9

22 Software SystemRequirements (per physical instance) 10

3 Setting Up Tomcat for Kony MobileFabric Sync 11

31 Install Tomcat 11

32 Add Driver Jars 11

33 Creating SyncConsole Database 12

34 Setting up SyncHomeDirectory 12

35 Creating Datasource and Configuring JNDI and Hibernate Dialect 14

4 Deploying SyncConsole Application 21

5 Deploying SyncServices Application 23

51 Steps To Add SSLCertificate in SyncServer 24

6 Upgrading Kony MobileFabric Sync Manually 27

61 Upgrading Tomcat Manually from 55x 56x to 65x 29

62 Upgrading Tomcat Manually from 56x to 70x 37

copy 2016 by Kony Inc All rights reserved 4 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x 41

64 Upgrading Tomcat Manually from 70x to 71x 44

7 Appendix Setting Up Multiple Sync Home Directories 54

copy 2016 by Kony Inc All rights reserved 5 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Preface

There are two important components of KonyMobileFabric Sync Framework - SyncManagement

Console and Sync Services

Sync Management Console provides a single point of control for monitoring and configures the Kony

MobileFabric Sync console creation process including data integration storage and analysis By

using web based user interface the console requires less training time reduces the number of steps

involved in administration The console provides an opportunity to uphold standard operating

procedures andminimizemanual work by enabling repeatable processes

Sync Services are the services that synchronize data between Client and Enterprise Data Source bi-

directionally

Important Kony recommends using theMobileFabric Installer for deployingMobileFabric 70

onwards

If you are required to install MobileFabricmanually due to your business rules and policies please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artifacts Manual installs not approved by Konywill not be supported

11 Purpose

This document provides instructions for installing and configuring KonyMobileFabric Sync Server on

Tomcat

12 Intended Audience

This document is intended for Administrators and Developers responsible for installing and configuring

KonyMobileFabric Sync Server It is assumed that the reader of this document is familiar with

deploying software on Java application serversWebLogic application server and installing database

software

copy 2016 by Kony Inc All rights reserved 6 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

13 Formatting conventions used in this guide

The following formatting conventions are used throughout the document

Click here

Convention Explanation

Monospace n User input text system prompts and responses

n File Path

n Commands

n Program Code

n File Names

Italic n Emphasis

n Names of Books and Documents

n New Terminology

Bold n Windows

n Menus

n Buttons

n Icons

n Fields

n Tabs

URL Active link to a URL

Note Provides helpful hints or additional information

copy 2016 by Kony Inc All rights reserved 7 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Convention Explanation

Important Highlights actions or information that might cause problems to

systems or data

14 Contact Us

Wewelcome your feedback on our documentationWrite to us at techpubskonycom For technical

questions suggestions comments or to report problems on Kony product line contact

prodsupportkonycom

copy 2016 by Kony Inc All rights reserved 8 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 3: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Revision History

Date DocumentVersion

Description of Modifications Release

10202016 14 Document updated for release 72

07122016 13 Appended a new section Upgrade Tomcat from 70x

to 71x

Document release for 71

06102016 12 Appended a new section Upgrade Tomcat from 56x

to 70x

05122016 11 Removed Required Setup files section in

Prerequisites

03222016 10 Document release for 70

copy 2016 by Kony Inc All rights reserved 3 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Table of Contents

1 Preface 6

11 Purpose 6

12 Intended Audience 6

13 Formatting conventions used in this guide 7

14 Contact Us 8

2 Prerequisites 9

21 Hardware Requirements (per physical instance) 9

22 Software SystemRequirements (per physical instance) 10

3 Setting Up Tomcat for Kony MobileFabric Sync 11

31 Install Tomcat 11

32 Add Driver Jars 11

33 Creating SyncConsole Database 12

34 Setting up SyncHomeDirectory 12

35 Creating Datasource and Configuring JNDI and Hibernate Dialect 14

4 Deploying SyncConsole Application 21

5 Deploying SyncServices Application 23

51 Steps To Add SSLCertificate in SyncServer 24

6 Upgrading Kony MobileFabric Sync Manually 27

61 Upgrading Tomcat Manually from 55x 56x to 65x 29

62 Upgrading Tomcat Manually from 56x to 70x 37

copy 2016 by Kony Inc All rights reserved 4 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x 41

64 Upgrading Tomcat Manually from 70x to 71x 44

7 Appendix Setting Up Multiple Sync Home Directories 54

copy 2016 by Kony Inc All rights reserved 5 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Preface

There are two important components of KonyMobileFabric Sync Framework - SyncManagement

Console and Sync Services

Sync Management Console provides a single point of control for monitoring and configures the Kony

MobileFabric Sync console creation process including data integration storage and analysis By

using web based user interface the console requires less training time reduces the number of steps

involved in administration The console provides an opportunity to uphold standard operating

procedures andminimizemanual work by enabling repeatable processes

Sync Services are the services that synchronize data between Client and Enterprise Data Source bi-

directionally

Important Kony recommends using theMobileFabric Installer for deployingMobileFabric 70

onwards

If you are required to install MobileFabricmanually due to your business rules and policies please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artifacts Manual installs not approved by Konywill not be supported

11 Purpose

This document provides instructions for installing and configuring KonyMobileFabric Sync Server on

Tomcat

12 Intended Audience

This document is intended for Administrators and Developers responsible for installing and configuring

KonyMobileFabric Sync Server It is assumed that the reader of this document is familiar with

deploying software on Java application serversWebLogic application server and installing database

software

copy 2016 by Kony Inc All rights reserved 6 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

13 Formatting conventions used in this guide

The following formatting conventions are used throughout the document

Click here

Convention Explanation

Monospace n User input text system prompts and responses

n File Path

n Commands

n Program Code

n File Names

Italic n Emphasis

n Names of Books and Documents

n New Terminology

Bold n Windows

n Menus

n Buttons

n Icons

n Fields

n Tabs

URL Active link to a URL

Note Provides helpful hints or additional information

copy 2016 by Kony Inc All rights reserved 7 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Convention Explanation

Important Highlights actions or information that might cause problems to

systems or data

14 Contact Us

Wewelcome your feedback on our documentationWrite to us at techpubskonycom For technical

questions suggestions comments or to report problems on Kony product line contact

prodsupportkonycom

copy 2016 by Kony Inc All rights reserved 8 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 4: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Table of Contents

1 Preface 6

11 Purpose 6

12 Intended Audience 6

13 Formatting conventions used in this guide 7

14 Contact Us 8

2 Prerequisites 9

21 Hardware Requirements (per physical instance) 9

22 Software SystemRequirements (per physical instance) 10

3 Setting Up Tomcat for Kony MobileFabric Sync 11

31 Install Tomcat 11

32 Add Driver Jars 11

33 Creating SyncConsole Database 12

34 Setting up SyncHomeDirectory 12

35 Creating Datasource and Configuring JNDI and Hibernate Dialect 14

4 Deploying SyncConsole Application 21

5 Deploying SyncServices Application 23

51 Steps To Add SSLCertificate in SyncServer 24

6 Upgrading Kony MobileFabric Sync Manually 27

61 Upgrading Tomcat Manually from 55x 56x to 65x 29

62 Upgrading Tomcat Manually from 56x to 70x 37

copy 2016 by Kony Inc All rights reserved 4 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x 41

64 Upgrading Tomcat Manually from 70x to 71x 44

7 Appendix Setting Up Multiple Sync Home Directories 54

copy 2016 by Kony Inc All rights reserved 5 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Preface

There are two important components of KonyMobileFabric Sync Framework - SyncManagement

Console and Sync Services

Sync Management Console provides a single point of control for monitoring and configures the Kony

MobileFabric Sync console creation process including data integration storage and analysis By

using web based user interface the console requires less training time reduces the number of steps

involved in administration The console provides an opportunity to uphold standard operating

procedures andminimizemanual work by enabling repeatable processes

Sync Services are the services that synchronize data between Client and Enterprise Data Source bi-

directionally

Important Kony recommends using theMobileFabric Installer for deployingMobileFabric 70

onwards

If you are required to install MobileFabricmanually due to your business rules and policies please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artifacts Manual installs not approved by Konywill not be supported

11 Purpose

This document provides instructions for installing and configuring KonyMobileFabric Sync Server on

Tomcat

12 Intended Audience

This document is intended for Administrators and Developers responsible for installing and configuring

KonyMobileFabric Sync Server It is assumed that the reader of this document is familiar with

deploying software on Java application serversWebLogic application server and installing database

software

copy 2016 by Kony Inc All rights reserved 6 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

13 Formatting conventions used in this guide

The following formatting conventions are used throughout the document

Click here

Convention Explanation

Monospace n User input text system prompts and responses

n File Path

n Commands

n Program Code

n File Names

Italic n Emphasis

n Names of Books and Documents

n New Terminology

Bold n Windows

n Menus

n Buttons

n Icons

n Fields

n Tabs

URL Active link to a URL

Note Provides helpful hints or additional information

copy 2016 by Kony Inc All rights reserved 7 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Convention Explanation

Important Highlights actions or information that might cause problems to

systems or data

14 Contact Us

Wewelcome your feedback on our documentationWrite to us at techpubskonycom For technical

questions suggestions comments or to report problems on Kony product line contact

prodsupportkonycom

copy 2016 by Kony Inc All rights reserved 8 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 5: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x 41

64 Upgrading Tomcat Manually from 70x to 71x 44

7 Appendix Setting Up Multiple Sync Home Directories 54

copy 2016 by Kony Inc All rights reserved 5 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Preface

There are two important components of KonyMobileFabric Sync Framework - SyncManagement

Console and Sync Services

Sync Management Console provides a single point of control for monitoring and configures the Kony

MobileFabric Sync console creation process including data integration storage and analysis By

using web based user interface the console requires less training time reduces the number of steps

involved in administration The console provides an opportunity to uphold standard operating

procedures andminimizemanual work by enabling repeatable processes

Sync Services are the services that synchronize data between Client and Enterprise Data Source bi-

directionally

Important Kony recommends using theMobileFabric Installer for deployingMobileFabric 70

onwards

If you are required to install MobileFabricmanually due to your business rules and policies please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artifacts Manual installs not approved by Konywill not be supported

11 Purpose

This document provides instructions for installing and configuring KonyMobileFabric Sync Server on

Tomcat

12 Intended Audience

This document is intended for Administrators and Developers responsible for installing and configuring

KonyMobileFabric Sync Server It is assumed that the reader of this document is familiar with

deploying software on Java application serversWebLogic application server and installing database

software

copy 2016 by Kony Inc All rights reserved 6 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

13 Formatting conventions used in this guide

The following formatting conventions are used throughout the document

Click here

Convention Explanation

Monospace n User input text system prompts and responses

n File Path

n Commands

n Program Code

n File Names

Italic n Emphasis

n Names of Books and Documents

n New Terminology

Bold n Windows

n Menus

n Buttons

n Icons

n Fields

n Tabs

URL Active link to a URL

Note Provides helpful hints or additional information

copy 2016 by Kony Inc All rights reserved 7 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Convention Explanation

Important Highlights actions or information that might cause problems to

systems or data

14 Contact Us

Wewelcome your feedback on our documentationWrite to us at techpubskonycom For technical

questions suggestions comments or to report problems on Kony product line contact

prodsupportkonycom

copy 2016 by Kony Inc All rights reserved 8 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 6: Kony MobileFabric Sync Tomcat Installation Guide - Manual

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Preface

There are two important components of KonyMobileFabric Sync Framework - SyncManagement

Console and Sync Services

Sync Management Console provides a single point of control for monitoring and configures the Kony

MobileFabric Sync console creation process including data integration storage and analysis By

using web based user interface the console requires less training time reduces the number of steps

involved in administration The console provides an opportunity to uphold standard operating

procedures andminimizemanual work by enabling repeatable processes

Sync Services are the services that synchronize data between Client and Enterprise Data Source bi-

directionally

Important Kony recommends using theMobileFabric Installer for deployingMobileFabric 70

onwards

If you are required to install MobileFabricmanually due to your business rules and policies please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artifacts Manual installs not approved by Konywill not be supported

11 Purpose

This document provides instructions for installing and configuring KonyMobileFabric Sync Server on

Tomcat

12 Intended Audience

This document is intended for Administrators and Developers responsible for installing and configuring

KonyMobileFabric Sync Server It is assumed that the reader of this document is familiar with

deploying software on Java application serversWebLogic application server and installing database

software

copy 2016 by Kony Inc All rights reserved 6 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

13 Formatting conventions used in this guide

The following formatting conventions are used throughout the document

Click here

Convention Explanation

Monospace n User input text system prompts and responses

n File Path

n Commands

n Program Code

n File Names

Italic n Emphasis

n Names of Books and Documents

n New Terminology

Bold n Windows

n Menus

n Buttons

n Icons

n Fields

n Tabs

URL Active link to a URL

Note Provides helpful hints or additional information

copy 2016 by Kony Inc All rights reserved 7 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Convention Explanation

Important Highlights actions or information that might cause problems to

systems or data

14 Contact Us

Wewelcome your feedback on our documentationWrite to us at techpubskonycom For technical

questions suggestions comments or to report problems on Kony product line contact

prodsupportkonycom

copy 2016 by Kony Inc All rights reserved 8 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 7: Kony MobileFabric Sync Tomcat Installation Guide - Manual

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

13 Formatting conventions used in this guide

The following formatting conventions are used throughout the document

Click here

Convention Explanation

Monospace n User input text system prompts and responses

n File Path

n Commands

n Program Code

n File Names

Italic n Emphasis

n Names of Books and Documents

n New Terminology

Bold n Windows

n Menus

n Buttons

n Icons

n Fields

n Tabs

URL Active link to a URL

Note Provides helpful hints or additional information

copy 2016 by Kony Inc All rights reserved 7 of 54

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Convention Explanation

Important Highlights actions or information that might cause problems to

systems or data

14 Contact Us

Wewelcome your feedback on our documentationWrite to us at techpubskonycom For technical

questions suggestions comments or to report problems on Kony product line contact

prodsupportkonycom

copy 2016 by Kony Inc All rights reserved 8 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 8: Kony MobileFabric Sync Tomcat Installation Guide - Manual

1 Preface Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Convention Explanation

Important Highlights actions or information that might cause problems to

systems or data

14 Contact Us

Wewelcome your feedback on our documentationWrite to us at techpubskonycom For technical

questions suggestions comments or to report problems on Kony product line contact

prodsupportkonycom

copy 2016 by Kony Inc All rights reserved 8 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 9: Kony MobileFabric Sync Tomcat Installation Guide - Manual

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

2 Prerequisites

Read this section to understand the system requirements and necessary software before you install

and configure KonyMobileFabric Sync Services

21 Hardware Requirements (per physical instance)

Component

Specification per Instance

StandardDevelopmentEnvironment

Standard QA orCertificationEnvironment

Standard ProductionEnvironment

Windows

Operating

System

Windows Server 2008

Windows 8

Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Windows Server 2008

Windows 8 Professional

Windows 7

Professional 64 bit 4

Cores

Linux Operating

System

RedHat Linux

Enterprise 60 64 bit

4 Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Red Hat Linux

Enterprise 60 64 bit 4

Cores

Minimum

Recommended

RAM

8GB ormore 16GB ormore 32GB ormore

Minimum

Recommended

Hard Disk

Space

40GB ormore 40GB ormore 80GB ormore

copy 2016 by Kony Inc All rights reserved 9 of 54

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 10: Kony MobileFabric Sync Tomcat Installation Guide - Manual

2 Prerequisites Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

For detailed information on hardware requirements refer to KonyMobileFabric Sync Server

Installation Options section of Kony Sync Server PlanningGuide

22 Software System Requirements (per physical instance)

For software system requirements click here

copy 2016 by Kony Inc All rights reserved 10 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 11: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Setting Up Tomcat for Kony MobileFabric Sync

To set up Tomcat for Kony MobileFabric Sync follow these steps

1 Install Tomcat

2 Add Driver Jars

3 Creating SyncConsole Database

4 Setting up SyncHomeDirectory

5 Creating Datasource and Configuring JNDI and Hibernate Dialect

31 Install Tomcat

To install Tomcat follow these steps

1 Download apache-tomcat from httptomcatapacheorgdownload-70cgi

2 Extract and save the files at a required location on your system (for example Dtomcat 70)

32 Add Driver Jars

To add driver jars follow this step

1 Download and add a jar file under ltTomcat_Installationgtlib folder

2 Based on your database server you can select one of the following jar files for connecting

databases (Console Database Persistent Database and Enterprise Database)

l mysql-connector-java-5135-binjar

l ojdbc6_gjar

copy 2016 by Kony Inc All rights reserved 11 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 12: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

l postgresql-92-1000jdbc4jar

l sqljdbc4jar

l db2jcc4jar and db2jcc_license_cisuzjar

33 Creating SyncConsole Database

To create SyncConsole Database follow this step

Download and runsql file from your Server Sync console database is created

To execute database scripts using flyway command-line tool refer Configuring FlywayCommand-line

Tool section in theMobileFabricManual Install Guide

For example

l For SQL Server console-schema-sqlserversql

l For MySQL console-schema-mysqlsql

l For Oracle console-schema-oraclesql

l For Postgre SQL console-schema-postgresqlsql

l For DB2 console-schema-db2sql

34 Setting up Sync Home Directory

Note To setupmore than one Sync home directory skip the below steps and refer section Setting

UpMultiple SyncHomeDirectories

To set up Sync home directory follow these steps

copy 2016 by Kony Inc All rights reserved 12 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 13: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

1 Create a folder in your directory structure (For example DKonyKonySync inWindows

KonyKonySync in Linux) and assume it as synchome

2 Create a conf directory under it

3 Extract the PropertyFileszip to the conf directory The following files appear

a console-log4jproperties

b services-log4jproperties

c synclicenseproperties

d syncconsoleproperties

e syncserviceproperties

f middlewareproperties

4 Create the directory structure middlewaremiddleware-bootconfig under synchome and

move middlewareproperties fromconf to middlewaremiddleware-bootconfig

5 Configure synchome and middlewarehome as JVMargument below includingmemory

settings

a Opencatalinabat inltTomcat_Installationgtbin directory

b Add the following code at the beginning

set JAVA_OPTS=JAVA_OPTS -Dsynchome=DKonyKonySync -

Dmiddlewarehome=DKonyKonySync -Xms512m -Xmx1024m -

XXPermSize=256m -XXMaxPermSize=256m -Dfileencoding=UTF8

Note You can add any custom JAR files to synchome in the following location

If the sync version is 5x you can place the custom JAR file at ltsynchomegtlib

If the sync version is greater than or equal to 6x then you can place the custom JAR file at synchomeapache-tomcat-7052webappssyncserviceWEB-INFlib

copy 2016 by Kony Inc All rights reserved 13 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 14: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

35 Creating Datasource and Configuring JNDI and Hibernate Dialect

To create DataSource and Configure JNDI and Hibernate Dialect follow these steps

1 Configure the above JNDI name and hibernate dialect class name by following these steps

a To configure console database details include the following Resource tag in between

ltContextgt ltContextgt tags in the contextxmlfile under ltTomcat_

Installationgtconfdirectory

The following are the sample database JNDI resource code

My SQL Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

driverClassName=commysqljdbcDriver username=root

password=kony123 url=jdbcmysqllocalhost3306syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

SQLServer

copy 2016 by Kony Inc All rights reserved 14 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 15: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=commicrosoftsqlserverjdbcSQLServerDriver

username=sa

password=kony123

url=jdbcsqlserverlocalhost1433databaseName=syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

Oracle Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=oraclejdbcdriverOracleDriver

username=syncconsole

password=kony123 url=jdbcoraclethinlocalhost1521xe

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

PostgreSQL Server

copy 2016 by Kony Inc All rights reserved 15 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 16: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=orgpostgresqlDriver username=postgres

password=kony123

url=jdbcpostgresqllocalhost5432syncconsole

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=10 maxActive=30 minIdle=10 maxWait=10000

maxIdle=30

removeAbandonedTimeout=60 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

DB2Server

ltResource name=jdbcConsoleDB auth=Container

type=javaxsqlDataSource

factory=orgapachetomcatjdbcpoolDataSourceFactory

driverClassName=comibmdb2jccDB2Driver username=dbclient

password=kony123

url=jdbcdb2localhost50000KONYDBcurrentSchema=syncconsol

e

testWhileIdle=true testOnBorrow=true testOnReturn=false

validationQuery=SELECT 1

validationInterval=30000 timeBetweenEvictionRunsMillis=30000

initialSize=5 maxActive=10 minIdle=5 maxWait=10000

maxIdle=10

removeAbandonedTimeout=600 removeAbandoned=true

logAbandoned=true

minEvictableIdleTimeMillis=30000 jmxEnabled=truegt

copy 2016 by Kony Inc All rights reserved 16 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 17: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Note Contact your database administrator to get the user name and password

b Place syncconsoleproperties file under ltsynchomegtconf directory where

the syncconsoleproperties file should have the following properties

Sync Console configuration properties file

Hibernate Dialect related properties

For MySQL

hibernatedialect=comkonysyncconsoledialectCustomMySQLDiale

ct

For Oracle

hibernatedialect=comkonysyncconsoledialectCustomOracleDial

ect

For PostgreSQL

hibernatedialect=comkonysyncconsoledialectCustomPostgreSQL

Dialect

For DB2

hibernatedialect=comkonysyncconsoledialectCustomDB2Dialect

hibernatedialect=comkonysyncconsoledialectCustomSQLServerDi

alect

copy 2016 by Kony Inc All rights reserved 17 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 18: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Based on the database you need to update the custom server

dialect

SyncConsole JNDI Name

For JBoss

syncconsolejndiname=javaConsoleDB

For Tomcat Weblogic Websphere

syncconsolejndiname=jdbcConsoleDB

syncconsolejndiname=jdbcConsoleDB

Based on the database you need to update the custom server

dialect

Quartz related Properties

instance name

orgquartzschedulerinstanceName=SyncScheduler

Job store class name - Setting The Schedulers JobStore to

JobStoreTX

orgquartzjobStoreclass=orgquartzimpljdbcjobstoreJobStoreTX

copy 2016 by Kony Inc All rights reserved 18 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 19: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

Thread pool class name

orgquartzthreadPoolclass=orgquartzsimplSimpleThreadPool

This parameter determines number of jobs that run simultaneously

orgquartzthreadPoolthreadCount=12

This parameter determines thread priority

orgquartzthreadPoolthreadPriority=5

Determines whether the server is in clustered mode or not

orgquartzjobStoreisClustered=false

The number of milliseconds the scheduler will tolerate a

trigger to pass its next-fire-time by before being considered

misfired

orgquartzjobStoremisfireThreshold=60000

Quartz Dialect related property

The below property is used by quartz to do any JDBC work

required for its implementation to access syncconsole

databaseso this is based on the driver that is being used

while defining syncconsole database

For Microsoft SQLServer driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreMSSQLDelegate

For PostgreSQL driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

torePostgreSQLDelegate

For Oracle Drivers used in Weblogic

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjob

storeoracleweblogicWebLogicOracleDelegate

copy 2016 by Kony Inc All rights reserved 19 of 54

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 20: Kony MobileFabric Sync Tomcat Installation Guide - Manual

3 Setting Up Tomcat for Kony

MobileFabric Sync

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

For Oracle driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreoracleOracleDelegate

For DB2 driver

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreDB2v8Delegate

For Weblogic JDBC drivers

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreWebLogicDelegate

When the driver doesnt match above specified category

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobs

toreStdJDBCDelegate

orgquartzjobStoredriverDelegateClass=orgquartzimpljdbcjobst

oreMSSQLDelegate

Based on the database you need to update the custom server

dialect

SyncService context root name to access Sync Services Logs

syncservicecontext=syncservice

copy 2016 by Kony Inc All rights reserved 20 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 21: Kony MobileFabric Sync Tomcat Installation Guide - Manual

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

4 Deploying SyncConsole Application

To deploy SyncConsole application follow these steps

1 Copy syncconsolewar file and paste it into webapps folder of Tomcat

2 Start Tomcat server from Tomcat Installation Double-click startupbat for windows in

ltTomcat_Installationgtbin folder

3 Access console application from browser using the login URL

httplocalhost8080syncconsole

4 On successful deployment you can view the following page

5 Enter super user credentials for the first time to login to the application

a Username syncadmin

b Password SyncAdmin123

After successful login the following screen appears

copy 2016 by Kony Inc All rights reserved 21 of 54

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 22: Kony MobileFabric Sync Tomcat Installation Guide - Manual

4 Deploying SyncConsole

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

copy 2016 by Kony Inc All rights reserved 22 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 23: Kony MobileFabric Sync Tomcat Installation Guide - Manual

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 Deploying SyncServices Application

You have to deploy the SyncServices application that you configured

To deploy the Sync Services application follow these steps

1 Copy SyncServicewar file and paste it into webapps folder of Tomcat

2 Double-click startupbat for windows in ltTomcat_Installationgtbin folder to start

the Tomcat server from Tomcat Installation

3 After successful deployment the tomcat console displays the below message

4 Access service application from browser using below login URL

httplocalhost8080syncservice

copy 2016 by Kony Inc All rights reserved 23 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 24: Kony MobileFabric Sync Tomcat Installation Guide - Manual

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

5 On successful deployment you can view the following page

51 Steps To Add SSL Certificate in SyncServer

To add the SSL certificate in SyncServer follow these steps

1 In webxml located at apache-tomcat-7052webappssyncserviceWEB-

INF add the below code above the lterror-pagegt tag

security-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncserviceltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

copy 2016 by Kony Inc All rights reserved 24 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 25: Kony MobileFabric Sync Tomcat Installation Guide - Manual

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

2 In webxml located at apache-tomcat-7052webappssyncconsoleWEB-

INF add the below code above the lterror-pagegt tag

ltsecurity-constraintgt

ltweb-resource-collectiongt

ltweb-resource-namegtsyncconsoleltweb-resource-namegt

lturl-patterngtlturl-patterngt

ltweb-resource-collectiongt

ltuser-data-constraintgt

lttransport-guaranteegtCONFIDENTIALlttransport-guaranteegt

ltuser-data-constraintgt

ltsecurity-constraintgt

3 In serverxml file located at ESyncServers6528QAapache-tomcat-

7052conf add the below code above ltEngine name=Catalina

defaultHost=localhostgt tag

ltConnector port=8443

maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false

acceptCount=25 disableUploadTimeout=true server=Kony

tcpNoDelay=true compression=on

compressableMimeType=textcsstextjavascripttexthtml

SSLEnabled=true scheme=https secure=true

protocol=orgapachecoyotehttp11Http11NioProtocol

clientAuth=false sslProtocol=TLS

keystoreFile=ESyncServersSSLCertificatestomcatjks

keystorePass=password

truststoreFile=ESyncServersSSLCertificatestomcatjks

truststorePass=passwordgt

And comment the below code

copy 2016 by Kony Inc All rights reserved 25 of 54

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 26: Kony MobileFabric Sync Tomcat Installation Guide - Manual

5 Deploying SyncServices

Application

Kony MobileFabric Sync Server Installation - Manual -

TomcatVersion14

ltConnector server=Kony port=6528 protocol=HTTP11

connectionTimeout=20000

compression=on compressionMinSize=512

noCompressionUserAgents=gozilla traviata

compressableMimeType=texthtmltextxmltextcsstextplainte

xtjavascript

applicationx-

javascriptapplicationjavascriptapplicationjsonapplication

xmlgt

4 Restart the server

copy 2016 by Kony Inc All rights reserved 26 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 27: Kony MobileFabric Sync Tomcat Installation Guide - Manual

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

6 Upgrading Kony MobileFabric Sync Manually

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications Assume that you have prior

installation of KonyMobileFabric Sync This topic talks about manually upgrading KonyMobileFabric

Sync Frameworkwithout an installer Follow the links to upgrade your server

Server From Version To Version

Tomcat 55x 56x 65x

Tomcat 56x 70x

Tomcat 60x 65x 70x

Tomcat 70x 71x

601 Upgrading Sync Plug-in

To upgrade the Kony MobileFabric Sync plug-in

1 Download the latest Sync plug-in and dependent plug-ins from the update site through Kony

Studio

Update site for version

For 64-bit httpdownloadkonycomstudio55sitexml

For 32-bit httpdownloadkonycomstudio55win32sitexml

For Mac httpdownloadkonycomstudio55macsitexml

2 Generate code using theSync Configuration file with new plug-in For more

information see DevelopingOffline Applications in KonyMobileFabric SyncDevelopingOffline

Apps guide

copy 2016 by Kony Inc All rights reserved 27 of 54

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 28: Kony MobileFabric Sync Tomcat Installation Guide - Manual

6 Upgrading Kony MobileFabric Sync

Manually

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

3 Replace the generatedmodeljs files (for each sync object)

4 Build the application

Note For version 70 upgrade of MobileFabric Sync plug-in is done through installer

copy 2016 by Kony Inc All rights reserved 28 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 29: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

61 Upgrading Tomcat Manually from 55x 56x to 65x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Frameworkwithout an installer

611 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Download the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

4 Download and ConfigureMobileFabric Sync Tool

5 Upgrade WAR Files

6 Verifying theMobileFabric Sync Version

Note Ensure you stop Tomcat server before you start upgrading KonyMobileFabric Sync

copy 2016 by Kony Inc All rights reserved 29 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 30: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6111 Download the Required Files

File Download

syncconsolewar

syncservicewar

1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Click Manual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the Kony ltvergt GA tab gt Kony Sync Application

Server

9 Select the version from the Version drop-down

10 Click the Download for Tomcat button to download the

sync-tomcat-ltvergt zip

The files namedsyncconsoleltvergtwar

syncserviceltvergtwar are downloaded to your

machine

copy 2016 by Kony Inc All rights reserved 30 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 31: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Property Files 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Download for Property Files button to download

the property files

A file namedproperties-files-xxxxGA is

downloaded to your machine

copy 2016 by Kony Inc All rights reserved 31 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 32: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

File Download

Alter Scripts 1 On Kony community portal communitykonycom go to

Resources gt Products Downloads

The Kony Cloud page appears

2 Login with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 Select the version from the Version drop-down

6 Click Manual Installation

The Downloads Manual installers page appears

7 Click Kony MobileFabric

The Kony MobileFabric section appears

8 Click the Kony ltvergt GA tab gt Kony Sync Properties

and Jars

9 Select the version from the Version drop-down

10 Click the Alter Scripts button to download the alter script

files

A file namedalter_scripts is downloaded to your

machine

1 Download a jar file from the following list You can select a jar file based on the database you are

using

Note This is applicable only for SyncConsole version before version 56x

copy 2016 by Kony Inc All rights reserved 32 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 33: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Jar File Download Location

mysql-connector-java-

5135-binjar

httpdevmysqlcomdownloadsconnectorj

ojdbc6_gjarhttpwwworaclecomtechnetworkdatabaseenterprise-editionjdbc-

112010-090769html

postgresql-92-

1000jdbc4jar

httpjdbcpostgresqlorgdownloadhtml

sqljdbc4jarhttpwwwmicrosoftcomen-indownloaddetailsaspxid=11774

2 After you download the JAR file place the file into the ltTomcat_Installation_Dirgtlib

directory

6112 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Downloading the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example If you are usingMS SQLServer use script file names that look likeconsole-

schema-alter ndashsqlserver-xxxsql the version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from x to y execute all available alter scripts from x to y in ascending

order If there are no alter scripts in between two versions then there is no need to upgrade the

database

Example

copy 2016 by Kony Inc All rights reserved 33 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 34: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 If you are upgrading Sync Server from version 560 to 600 use the following alter scripts

l console-schema-alter-sqlserver-560sql

l console-schema-alter-sqlserver-600sql

6113 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the properties zip file extracted in step 4a from the section Download the Required

Files

2 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in existing property files installed through installer (for

example logs file path inlog4j properties files)

3 If you find any new files in the downloaded property files copy them andmake the necessary

changes For log4j property files you need to change the log file path

log4jappenderFAFile=CKonyKonySyncsynclogssyncconsolelog

Note

copy 2016 by Kony Inc All rights reserved 34 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 35: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are installed

through installer

6114 Download and Configure SyncTool

Note SyncTool is required under ltsynchomegt directory for 550 551 552 and 553 GA

versions only

1 On Kony community portal communitykonycom go to Resources gt Products Downloads

The Kony Cloud page appears

2 Log in with your Kony account credentials

The Downloads page appears

3 Click Kony MobileFabric

The Kony MobileFabric section appears

4 Click the Kony ltvergt GA tab gt Kony Sync

5 ClickManual Installation

The Downloads Manual installers page appears

6 Click Kony MobileFabric

The Kony MobileFabric section appears

7 Select the version from the Version drop-down

8 Click the SyncTool button to download the Sync tool

9 In your local directory create SyncTool directory underltsynchomegt

copy 2016 by Kony Inc All rights reserved 35 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 36: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

10 Extract Sync Tool zip contents under ltsynchomegtSyncTool directory SyncTool directory

contains Sync Tool contents and contains directories such as Database Common Client

and Build

11 Configure SyncToolhome in syncconsoleproperties file using the following code

(Replaceltsynchomegtwith your Sync home path)

SyncTool home

synctoolhome=ltsynchomegtSyncTool

6115 Upgrade WAR Files

To upgrade the WAR files

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Backup of oldWAR files

3 Delete the extracted web application folders from Tomcat folder

4 Copy the downloadedWAR files to the Tomcat webapps folder

5 Start the Tomcat Server

6116 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console and

click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 36 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 37: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

62 Upgrading Tomcat Manually from 56x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 56x to 70x without an

installer

621 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6211 Upgrade the MobileFabric Sync Console Database

1 Take the backup of syncservicewar and syncconsolewar from

ltInstallFolderOf5642GAgtapache-tomcat-7052webapps and delete the

extracted syncconsole and syncservice folders

2 Extract the downloaded folder sync-sqlserver-650zip

3 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section

copy 2016 by Kony Inc All rights reserved 37 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 38: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6212 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

copy 2016 by Kony Inc All rights reserved 38 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 39: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

copy 2016 by Kony Inc All rights reserved 39 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 40: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

6213 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6214 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

copy 2016 by Kony Inc All rights reserved 40 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 41: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

63 Upgrading Tomcat Manually from 60x65x to 70x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

631 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 UpgradeMobileFabric SyncConsole Database

2 Upgrade Property Files

3 Upgrade WAR Files

4 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric

Sync

6311 Upgrade the MobileFabric Sync Console Database

1 Extract thealter_scripts zip file For information on Downloading alter_scripts

refer section Download the Required Files

2 The extracted folder contains the alter scripts for the respective databases used

For example for MS SQLServer use script file names that look likeconsole-schema-

alter ndashsqlserver-xxxsql The version of the script is xxx

copy 2016 by Kony Inc All rights reserved 41 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 42: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Executing Alter Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

alter scripts between two versions in ascending order

Example

If you are upgrading Sync Server from version 650 to 700 use the following alter scripts

l console-schema-alter-sqlserver-650sql

l console-schema-alter-sqlserver-700sql

6312 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Change the following database related parameters in upgrade scripts and run the script

l replicadatabasehost

l replicadatabaseport

l replicadatabaseinstance

l replicadatabaseuser

l replicadatabasepassword

l uploaddatabasehost

l uploaddatabaseport

l uploaddatabaseinstance

copy 2016 by Kony Inc All rights reserved 42 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 43: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l uploaddatabaseuser

l uploaddatabasepassword

l orgquartzjobStoredriverDelegateClass

l syncservicesjndiprefix

Note The above parameters are obtained from old syncserviceproperties and

syncconsoleproperties (from 65x) For information on downloading the properties

files refer section Properties Files under Download the Required Files

2 Extract the Properties zip file that is downloaded in the section Download the Required Files

3 Navigate toltsynchomegtconf directory and compare the existing property files with

downloaded property files using a tool such as Text Compare

l If there are anymodifications in the files copy themodifications to the existing property

files

Note Do not change any path in the existing property files installed through the

installer Make sure the same JNDI file name in old properties files is present in the

updated properties file

1 Replace with your ltsynchomegt path

2 Do not change any dialect related changes in the existing properties that are

installed through the installer

6313 Upgrade WAR Files

To upgrade the WAR files follow these steps

copy 2016 by Kony Inc All rights reserved 43 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 44: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Rename the downloadedWAR files as syncconsolewar and syncservicewar

respectively

2 Back up of old WAR files

3 Delete the existing WAR files from the Homeapache-tomcat-7052webapps location

4 Copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat Server and perform sync sanity on the upgraded server

6314 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

64 Upgrading Tomcat Manually from 70x to 71x

KonyMobileFabric Sync Framework is a comprehensive synchronization platform that enables

developers to add synchronization capabilities tomobile applications This topic talks about manually

upgrading KonyMobileFabric Sync Framework on Tomcat server from 70x to 71x without an

installer

641 How to Upgrade Kony MobileFabric Sync

Themanual upgrade of KonyMobileFabric Sync includes the following steps

1 Downloading the Required Files

2 UpgradeMobileFabric SyncConsole Database

3 Upgrade Property Files

copy 2016 by Kony Inc All rights reserved 44 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 45: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

4 Upgrade WAR Files

5 Verifying theMobileFabric Sync Version

Note Youmust stop the Tomcat server before you start upgrading KonyMobileFabric Sync

6411 Download the Required Files

If you are required to installupgradeMobileFabricmanually due to your business polices please

contact productsupportkonycom for approval and to obtain access to theMobileFabricmanual

install artefacts

Important Manual installs not approved by Konywill not be supported

6412 Upgrade the MobileFabric Sync Console Database

1 Extract thesyncconsole-ltdatabase namegt zip file For information on Downloading

DB_scripts refer section Download the Required Files

2 The extracted folder contains the upgrade scripts for the respective databases used

Executing Upgrade Script Files

If you are upgrading Sync Server from its current version to newer version execute all available

upgrade scripts between two versions in ascending orderThe extracted upgrade scripts will be used

to update the sync console schema from 70xGA to 710xGA They are to be run using flyway

software For updating the extracted scripts follow these steps

copy 2016 by Kony Inc All rights reserved 45 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 46: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

1 Download the flyway software from httpflywaydborggetstarteddownloadhtml

2 Extract the flyway folder (flyway-commandline-401-windows-x64zip) to find

flyway-401ltany-available-versiongt

3 Copy the scripts from sync-70xsyncsyncconsole-ltdatabase namegt to

flyway-401sql folder

4 Set the following properties in flyway configuration file flywayconf under flyway-

401conf

a Set the below properties based on the syncconsole dbmachine

flywayurl=

flywayuser=

flywaypassword=

flywayschemas=

flyway syntax

MSSQL

flywayurl=jdbcsqlserverlthostgtdatabaseName=ltdatabase

copy 2016 by Kony Inc All rights reserved 46 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 47: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

If you donrsquot specify schema name by default DBO will be

considered as

schema name

MYSQL

flywayurl=jdbcmysqllthostgtltportgt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

Oracle

flywayurl=jdbcoraclethinlthostgtltportgtltservicegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

DB2

flywayurl=jdbcdb2lthostgtltportgtltDatabaseNamegt

flywayuser=ltuser namegt

flywaypassword=ltpasswordgt

flywayschemas=ltschemaNamegt

b We have to set the 700 schema as baseline for flyway To do that set the below flyway

properties

flywaybaselineVersion=700

flywaybaselineDescription=V7_0_0__syncconsole-ltdatabase

copy 2016 by Kony Inc All rights reserved 47 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 48: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

namegtsql

flywaybaselineOnMigrate=true

c Set the placeholder value for SYNC_LOG_LOCATION (With this you will be able to

generate the logs at specified location)

flywayplaceholdersKONY_SYNC_LOG_LOCATION=ltYour Log

Locationgt

d Set the placeholder value for SYNC_LOG_OPTION It can have two values

l logfile - logswill be stored into files

l database - logs be stored into database

flywayplaceholdersKONY_SYNC_LOG_OPTION=ltYour LogOptiongt

5 Open command prompt under flyway folder flyway-401 and run the below commands

l flyway baseline

copy 2016 by Kony Inc All rights reserved 48 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 49: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

l flywaymigrate

Creating a Table space

1 If you are using DB2 as syncconsole database then you need to create a tablespace before

running the 710 script

a Create the Big tablespace with big bufferpool of 32K page size Only DB2 database

administrator (DBA) or equivalent DB user will have access to create database with

default tablespace with particular pagesizebufferpool In DB2 whenever Binary Large

Object (BLOB) and Character LargeObject (CLOB) are used you need to have the

database created with default tablespace aswell as default temp tablespace with big

pagesize of 32k

b To create a LOB tablespace

CREATE LARGE TABLESPACE ltLOB_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 49 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 50: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

CREATE SYSTEM TEMPORARY TABLESPACE BIGTEMP IN DATABASE

PARTITION GROUP IBMTEMPGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE USING STOGROUP

IBMSTOGROUP EXTENTSIZE 1M

PREFETCHSIZE AUTOMATIC BUFFERPOOL BIGBUFFERPOOL

COMMIT

CONNECT RESET

c To create an index tablespace

CREATE LARGE TABLESPACE ltIndex_Tablespace_Namegt IN DATABASE

PARTITION GROUP IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

d To create a tablespace for tables and Data

CREATE LARGE TABLESPACE ltData_Tablespace_Namegt IN DATABASE

PARTITION GROUP

IBMDEFAULTGROUP

PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32

PREFETCHSIZE AUTOMATIC

BUFFERPOOL BIGBUFFERPOOL OVERHEAD 75 TRANSFERRATE 006

AUTORESIZE YES

INITIALSIZE 32M NO FILE SYSTEM CACHING

COMMIT

copy 2016 by Kony Inc All rights reserved 50 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 51: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

e Replace ltDatabase_namegt with your actual database name

CONNECT TO ltDatabase_namegt

CREATE BUFFERPOOL BIGBUFFERPOOL IMMEDIATE ALL

DBPARTITIONNUMS

SIZE AUTOMATIC NUMBLOCKPAGES 100 BLOCKSIZE 100 PAGESIZE

32K

COMMIT

2 If you are using ORACLE as syncconsole database follow the below steps

a Create the following three tablespaces These tablespaceswill be used tomove already

createdMF database objects which were placed in default USERS tablespace

l Tables and data tablespace MF_DATA

l Index tablespace MF_INDEX

l Lob tablespace MF_LOB_DATA

b You can create these 3 tablespaces in the following way

l Using an SQLPlus or another Database client connect to youOracle database as

Sysdba

l Replace the ltDATA_FILE_PATHgt with actual data file path on theOracle

database server

l Create three tablescapes (MF_DATA MF_INDEX and MF_LOB_DATA) by

executing the command below (you need to grant create tablespace privilege to

ltinstall-usergt)

CREATE TABLESPACE MF_DATA DATAFILE ltDATA_FILE_

PATHgtMF_DATA_01DBF

copy 2016 by Kony Inc All rights reserved 51 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 52: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_INDEX DATAFILE ltDATA_FILE_

PATHgtMF_INDEX_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

CREATE TABLESPACE MF_LOB_DATA DATAFILE ltDATA_FILE_

PATHgtMF_LOB_DATA_01DBF

SIZE 2048M AUTOEXTEND ON NEXT 100M MAXSIZE 5120M

l Provide quota on all the above 3 tablespaces (MF_DATA MF_INDEX and MF_

LOB_DATA tablespaces) to MF database user Map the ltMF-schema-usergt

with all the 3 tablespaces by executing the command below

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

DATA

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_

INDEX

ALTER USER ltMF-schema-usergt QUOTA UNLIMITED ON MF_LOB_

DATA

6413 Upgrade Property Files

Note You need to stop the Tomcat server before you start upgrading KonyMobileFabric Sync

To upgrade property files in Sync Server follow these steps

1 Extract the Properties zip file that is downloaded in the section Download the Required Files

2 Navigate to ltsynchomegtconf directory and replace the existing property files with

downloaded property files

copy 2016 by Kony Inc All rights reserved 52 of 54

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 53: Kony MobileFabric Sync Tomcat Installation Guide - Manual

Kony MobileFabric Sync Server Installation - Manual - TomcatVersion14

Note Make sure you are retain the property syncservicesjndiprefix from the old

syncconsoleproperties file

6414 Upgrade WAR Files

To upgrade the WAR files follow these steps

1 Take the syncconsolewar and syncservice_tomcatwar from the downloaded

artifacts

2 Rename the syncservice_tomcatwar to syncservicewar

3 Take the backup of oldWAR files

4 Delete the existing WAR files from Homeapache-tomcat-7052webapps location and

copy the downloaded WAR files to the Tomcat webapps folder

5 Start the Tomcat server and perform sync sanity on the upgraded server

6415 Verify MobileFabric Sync Version

To verify if you have upgraded KonyMobileFabric Sync version correctly log on to Sync Console

and click Configuration The Configuration Details screen appears

TheMobileFabric Sync version upgrade details will be updated against the property value of Kony

MobileFabric Sync version

copy 2016 by Kony Inc All rights reserved 53 of 54

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories
Page 54: Kony MobileFabric Sync Tomcat Installation Guide - Manual

7 Appendix Setting Up Multiple Sync

Home Directories

Kony MobileFabric Sync Server Installation -

Manual - TomcatVersion14

7 Appendix Setting Up Multiple Sync Home Directories

MobileFabric Sync can now runmultiple Sync versions on the same application server

To set up multiple sync home directories follow these steps

1 Set the synchome as an app-level variable instead of JVM parameter(-D)

For more information on setting the Sync home in a JVMparameter refer Configuring Sync

Home as JVMProperty

2 Add synchome in the context parameter of the webxml file by entering the following

code

Sample Context param in webxml

ltcontext-paramgt

ltdescriptiongtsync home pathltdescriptiongt

ltparam-namegtsynchomeltparam-namegt

ltparam-valuegtCKonyKonySyncltparam-valuegt

ltcontext-paramgt

Note This preceding code should be entered in the webxml file of the

syncconsoleWAR and syncserviceWAR files andmanually deployed For more

information on deploying the WAR files refer to Deploying SynConsole WAR File and

Deploying SyncService WAR Files

copy 2016 by Kony Inc All rights reserved 54 of 54

  • 1 Preface
    • 11 Purpose
    • 12 Intended Audience
    • 13 Formatting conventions used in this guide
    • 14 Contact Us
      • 2 Prerequisites
        • 21 Hardware Requirements (per physical instance)
        • 22 Software System Requirements (per physical instance)
          • 3 Setting Up Tomcat for Kony MobileFabric Sync
            • 31 Install Tomcat
            • 32 Add Driver Jars
            • 33 Creating SyncConsole Database
            • 34 Setting up Sync Home Directory
            • 35 Creating Datasource and Configuring JNDI and Hibernate Dialect
              • 4 Deploying SyncConsole Application
              • 5 Deploying SyncServices Application
                • 51 Steps To Add SSL Certificate in SyncServer
                  • 6 Upgrading Kony MobileFabric Sync Manually
                    • 61 Upgrading Tomcat Manually from 55x 56x to 65x
                    • 62 Upgrading Tomcat Manually from 56x to 70x
                    • 63 Upgrading Tomcat Manually from 60x65x to 70x
                    • 64 Upgrading Tomcat Manually from 70x to 71x
                      • 7 Appendix Setting Up Multiple Sync Home Directories