This section provides you the steps to upgrade Kony MobileFabric Integration Service manually from 5.6.x to 6.5.x (Tomcat).
The following table displays the prerequisites for upgrading Kony MobileFabric Integration Service.
Refer to http://community.kony.com/downloads/manual to download the following artifacts:
Artifacts | Type | Purpose |
---|---|---|
Respective Database scripts | Database Scripts | To setup the required schema |
|
WAR files | To be deployed to Application Server |
|
TAR files | |
|
JAR files |
From Kony MobileFabric Integration Service 6.0 release, metrics.ear is required for reporting. The Admin module is enhanced for a better user experience and instead of depending on server user management, users are now stored in the database. To use the new features, you need to setup a database and install metrics.ear file.
Note: It is mandatory to install metrics.ear file along with admin.war.
The Kony Reports portal provides the following features:
Note: For more information on Kony Reports, click here.
Important: If you do not want to use the Kony Reports, use your existing admin.war file (for example, use the war file you have for 5.6.x version). By using the existing admin.war file, you avoid the need for additional hardware or software.
To backup files, follow these steps:
Sample path for middleware -bootconfig <installation_location\install\middleware>
To upgrade the database for legacy reports, follow these steps:
Download and run the upgrade scripts from http://community.kony.com/downloads/manual to upgrade the database and enable legacy reports.
For example: If your database version is 5.0.3 Oracle, run the schemas in "Oracle_upgrade_5.0.3 to 5.0.6" folder in the numerical order.
Note: To enable the legacy reports, the database should be the latest 5.0.6. version. If your database is not latest, run the database scripts based on your database and upgrade to 5.0.6 version.
Note: This is required for new metrics.
middleware-bootconfig of 6.5.x is bundled with few additional .properties files compared to earlier versions that are required during the upgrade process. You would also need few .properties files from your backup location.
To add new and update existing property files, follow these steps:
The following new property files extracted are applicable only for metrics
Note: If admin was used previously, update the admin-log4j.properties file by adding the location to previously used admin.logas shown log4j.appender.file.File=${middleware.home}/../logs/admin.log.
Note: You must replace the credentials and IP addresses according to your environment.
################################################## #Metrics Topic Configuration (applicable only for metrics) ################################################## #To enable / disable metrics #Make it true, if Kony Reports enabled and Metrics Topic is configured metrics.logging=true metrics.TopicName=jms/KonyMetricsTopic metrics.TopicConnectionFactoryName=jms/KonyConnectionFactory #For JBOSS JMS metrics.initialContextFactoryName=org.jboss.naming.remote.client. InitialContextFactory metrics.providerURL=remote://<ipaddress:port> #For Weblogic JMS #metrics.initialContextFactoryName=weblogic.jndi. WLInitialContextFactory #metrics.providerURL=remote://<ipaddress:port> #START- JBoss 6.2 EAP Additional Properties metrics.securityPrincipalName=admin metrics.securityCredentials=admin123 metrics.userName=admin metrics.password=admin123 #END- JBoss 6.2 EAP Additional Properties #Add the Kony Account ID and Environment ID keys as shown below and change the values of these keys accordingly. KONY_ACCOUNT_ID= Account_ID ENVIRONMENT_ID= Environment_ID You can mention your own Account_ID and Environment_ID.
middleware-log4j.properties
file from <install_location>\install\middleware\middleware-bootconfig> and edit as following.Note: You must replace the credentials and IP addresses according to your environment.
jms.logging=true (Change this value to false if you are not using old reports and remove the below content else no changes required to this file) #if middleware is hosted on Tomcat server log4j.appender.jms=com.konylabs.middleware.common.JMSAppender log4j.appender.jms.TopicBindingName=topic/KonyLogTopic log4j.appender.jms.TopicConnectionFactoryBindingName= jms/KonyConnectionFactory log4j.appender.jms.initialContextFactoryName= org.jboss.naming.remote.client.InitialContextFactory log4j.appender.jms.providerURL=remote://<ipaddress:port> #log4j.appender.jms.URLPkgPrefixes=jboss.naming: org.jnp.interfaces #NOTE: failoverDuration and failoverRetries introduced for kony middleware ( not defined by log4j) log4j.appender.jms.FailoverDuration=5000 log4j.appender.jms.FailoverRetries=3 #START- JBoss 6.2 EAP Additional Properties log4j.appender.jms.securityPrincipalName=admin log4j.appender.jms.securityCredentials=admin123 log4j.appender.jms.userName=admin log4j.appender.jms.password=admin123 #END- JBoss 6.2 EAP Additional Properties
Note: From 6.0.3.3 GA, metrics.logging flag is available and by default, is set to true. Prior to that, the below error statement is displayed (you can ignore this). ERROR-logservice.JMSLogService - Error while look up topic .
Note: If we set metrics.logging property to false, call the kony.license.disableMetricReporting() API in app init to disable “Maximum Offline Sessions Exceeded” alert.
To update the data source configuration, follow these steps:
admin.xml
file under Server\<version>\tomcat\instance1\conf\Catalina\localhost
.<Resource name="jdbc/konyadmindb" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" driverClassName="com.mysql.jdbc.Driver" username="root" password="kony123!" url="jdbc:mysql://<ipaddress:port>/ admin_db_upgrade?autoReconnect=true" 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="true"/> <Resource name="jdbc/konyreportsdb" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" driverClassName="com.mysql.jdbc.Driver" username="root" password="kony123!" url="jdbc:mysql://<ipaddress:port>/ reports_db_upgrade" 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="true"/>
To update JMS Configuration, follow these steps:
<datasources> <datasource jndi-name="java:/jdbc/konyreportsdb" pool-name="konyreportsdb" enabled="true" use-java-context="true"> <connection-url>jdbc:mysql://<ipaddress:port>/ reports_db_upgrade</connection-url> <driver>com.mysql</driver> <pool> <min-pool-size>10</min-pool-size> <max-pool-size>30</max-pool-size> <flush-strategy>IdleConnections</flush-strategy> </pool> <security> <user-name>userid</user-name> <password>pwd </password> </security> </datasource> <datasource jndi-name="java:/jdbc/konyadmindb" pool-name="konyadmindb" enabled="true" use-java-context="true"> <connection-url>jdbc:mysql://<ipaddress:port>/ admin_db_upgrade?autoReconnect=true</connection-url> <driver>com.mysql</driver> <pool> <min-pool-size>10</min-pool-size> <max-pool-size>30</max-pool-size> <flush-strategy>IdleConnections</flush-strategy> </pool> <security> <user-name>userid</user-name> <password>pwd</password> </security> </datasource> <drivers> <driver name="com.mysql" module="com.mysql"/> </drivers>
Replace the below configuration <jms-destinations> <jms-topic name="konyLogTopic"> <entry name="java:jboss/exported/topic/KonyLogTopic"/> </jms-topic> <jms-destimations> with the below <jms-destinations> <jms-topic name="KonyMetricsTopic"> <entry name="java:jboss/exported/jms/KonyMetricsTopic"/> </jms-topic> </jms-destinations>
To deploy the latest WAR files, follow these steps:
admin.war
and middleware.war
files to the application server.Note: Based on the database used, copy the respective DB driver .JAR file to \<Installation-location>\install\lib\middleware
. For example if you are using MYSQL DB, copy MySQL.jar file from MySQL site.
Important: Start the JBoss application server followed by Tomcat.
To upgrade from 5.x to 6.x, follow these steps:
If you are using the Kony Reporting Portal for tracking sessions and users, then you must make the following changes so that you continue to see the reports in the new Admin Console (under the section Reports > Legacy Reports).
To track sessions and users, follow these steps:
catalina.properties
file and provide the location where the files mentioned in Step-1 are placed - konyreports.home=<The directory location>
. admin.xml
file and configure the data source for legacy reports (<tomcat home dir>\instance1\conf\Catalina\localhost). <Resource name="jdbc/KARDB" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" driverClassName="com.mysql.jdbc.Driver" username="root" password="kony123!" url="jdbc:mysql://<ipaddress: port>/ADMIN" 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="true"/>
Execute the database scripts in konyreports.sql of KonyReportsDB and admin schema required for Kony reports.
Verify the upgrade process by logging into the console and look for Server Version and Health Check. Use version.html
for verification.
To verify the upgrade process, follow these steps:
http://ipaddress:port/middleware/version.html
and look for server version.
Navigate to Settings and click Configuration.
Copyright © 2013 Kony, Inc. All rights reserved. |