This section is applicable if you use JBoss as the J2EE Web container for the setup. Before you begin, you must configure the JBoss server with the configuration that provides Datasource services or continue with the default configuration provided out of the box.
After you configure the JBoss server, you must perform these operations:
You must configure the JBoss Server to provide the memory arguments and the location of the Kony Fabric Engagement Services configuration files.
To configure the JBoss server, follow these steps:
<JBoss Install Directory>/bin.
Modify run.sh file
with the following parameters:Parameters (for JVM) | Required | Description |
---|---|---|
-Xmx2048m | Yes | Minimum Heap size: 2GB |
-Xms2048m | Yes | Maximum Heap size: 2GB |
-XX:MaxPermSize=512m | Yes | One fourth of the main Heap memory assigned |
-XX:UseParallelGC | Yes | This is a recommended setting |
-Dkpns.configLocation | Yes | This is the directory where the configResource.properties , database.properties , and kms-log4j2.xml files must be placed.For example, if the location is /data/kpns-config , then you must specify the property as -Dkpns.configLocation=/data/kpns-config |
-Dhibernate.dialect | Enables you to connect to the database. JDBC has to be configured on the AppServer level. | DB2= SQL= Oracle=
MYSQL= |
-Xms2048m –Xmx2048m -Dkpns.configLocation=/data/kpns-config
You can configure databases for the following databases:
To configure the data source, follow these steps:
$JBOSS_HOME/modules
$JBOSS_HOME/modules/com/mysql/main
mysql-connector-java-5.1.26-bin.jar
to $JBOSS_HOME/modules/com/mysql/main
module.xml
file.<module xmlns="urn:jboss:module:1.1" name="com.mysql"> <properties> <property name="jboss.api" value="unsupported" /> </properties> <resources> <resource-root path="mysql-connector-java-5.1.26-bin.jar" /> </resources> <dependencies> <module name="javax.api" /> <module name="javax.transaction.api" /> <module name="javax.servlet.api" optional="true" /> </dependencies> </module>
$JBOSS_HOME/standalone/configuration/standalone.xml
<datasource jndi-name="java:/jdbc/kpnsdb" pool-name="kpnsds" enabled="true" use-java-context="true"> <connection-url>kpns db connection url</connection-url> <driver>mysql</driver> <security> <user-name>kpns db username</user-name> <password>kpns db password</password> </security> <new-connection-sql>SELECT 1</new-connection-sql> <validation> <validate-on-match>true</validate-on-match> <check-valid-connection-sql>SELECT 1</check-valid-connection-sql> </validation> </datasource>
<driver name="mysql" module="com.mysql"/>
jboss 6.2 or 6.4 or 7.0 $JBOSS_HOME/standalone/configuration/standalone.xml
<subsystem xmlns="urn:jboss:domain:jpa:1.1"> <jpa default-datasource="" default-extended-persistence-inheritance="DEEP" /> </subsystem>
$JBOSS_HOME/modules
$JBOSS_HOME/modules/com/microsoft/main
sqljdbc4.jar
to $JBOSS_HOME/modules/com/microsoft/main
module.xml
file.<module xmlns="urn:jboss:module:1.1" name="com.microsoft"> <properties> <property name="jboss.api" value="unsupported" /> </properties> <resources> <resource-root path="sqljdbc4.jar" /> </resources> <dependencies> <module name="javax.api" /> <module name="javax.transaction.api" /> <module name="javax.servlet.api" optional="true" /> </dependencies> </module>
$JBOSS_HOME/standalone/configuration/standalone.xml.
Add the following configuration with in <datasources>
<datasource jndi-name="java:/jdbc/kpnsdb" pool-name="kpnsds" enabled="true" use-java-context="true"> <connection-url>kpns db connection url</connection-url> <driver>microsoft</driver> <security> <user-name>kpns db username</user-name> <password>kpns db password</password> </security> <new-connection-sql>SELECT 1</new-connection-sql> <validation> <validate-on-match>true</validate-on-match> <check-valid-connection-sql>SELECT 1</check-valid-connection-sql> </validation> </datasource>
<driver name="microsoft" module="com.microsoft"/>
jboss 6.2 or 6.4 or 7.0 $JBOSS_HOME/standalone/configuration/standalone.xml
<subsystem xmlns="urn:jboss:domain:jpa:1.1"> <jpa default-datasource="" default-extended-persistence-inheritance="DEEP" /> </subsystem>
$JBOSS_HOME/modules.
$JBOSS_HOME/modules/com/oracle/main
ojdbc6_g.jar
to $JBOSS_HOME/modules/com/oracle/main
module.xml
file.<module xmlns="urn:jboss:module:1.1" name="com.oracle"> <properties> <property name="jboss.api" value="unsupported" /> </properties> <resources> <resource-root path="ojdbc6_g.jar" /> </resources> <dependencies> <module name="javax.api" /> <module name="javax.transaction.api" /> <module name="javax.servlet.api" optional="true" /> </dependencies> </module>
$JBOSS_HOME/standalone/configuration/standalone.xml
<datasource jndi-name="java:/jdbc/kpnsdb" pool-name="kpnsds" enabled="true" use-java-context="true"> <connection-url>kpns db connection url</connection-url> <driver>oracle</driver> <security> <user-name>kpns db username</user-name> <password>kpns db password</password> </security> <new-connection-sql>select 1 from dual</new-connection-sql> <validation> <validate-on-match>true</validate-on-match> <check-valid-connection-sql>select 1 from dual</check-valid-connection-sql> </validation> </datasource>
<driver name="db2" module="com.oracle"/>
jboss 6.2 or 6.4 or 7.0 $JBOSS_HOME/standalone/configuration/standalone.xml
<subsystem xmlns="urn:jboss:domain:jpa:1.1"> <jpa default-datasource="" default-extended-persistence-inheritance="DEEP" /> </subsystem>
$JBOSS_HOME/modules
$JBOSS_HOME/modules/com/db2/main
db2jcc4.jar
to $JBOSS_HOME/modules/com/db2/main
module.xml
file.<module xmlns="urn:jboss:module:1.1" name="com.db2"> <properties> <property name="jboss.api" value="unsupported" /> </properties> <resources> <resource-root path="db2jcc4.jar" /> </resources> <dependencies> <module name="javax.api" /> <module name="javax.transaction.api" /> <module name="javax.servlet.api" optional="true" /> </dependencies> </module>
$JBOSS_HOME/standalone/configuration/standalone.xml
<datasource jndi-name="java:/jdbc/kpnsdb" pool-name="kpnsds" enabled="true" use-java-context="true"> <connection-url>kpns db connection url</connection-url> <driver>db2</driver> <security> <user-name>kpns db username</user-name> <password>kpns db password</password> </security> <new-connection-sql>select 1 from sysibm.sysdummy1</new-connection-sql> <validation> <validate-on-match>true</validate-on-match> <check-valid-connection-sql>select 1 from sysibm.sysdummy1</check-valid-connection-sql> </validation> </datasource>
<driver name="db2" module="com.db2"/>
jboss 6.2 or 6.4 or 7.0 $JBOSS_HOME/standalone/configuration/standalone.xml
<subsystem xmlns="urn:jboss:domain:jpa:1.1"> <jpa default-datasource="" default-extended-persistence-inheritance="DEEP" /> </subsystem>
<JBoss Install Directory>/standalone/deployments/
Rev | Author | Edits |
---|---|---|
7.2 | AU | AU |
Copyright © 2015 Temenos AG. All rights reserved. |