0% found this document useful (0 votes)
4 views

API Tier Configuration

The document outlines the configuration process for the API container to utilize different connectors such as JMS or direct connector, detailing the necessary parameters and deployment procedures. It includes steps for deploying the IRF Provider Container WAR file, creating API server groups, and configuring JBoss settings. Additionally, it provides instructions for accessing the IRF Provider Container API using Postman.

Uploaded by

XIAOSHI LIU
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

API Tier Configuration

The document outlines the configuration process for the API container to utilize different connectors such as JMS or direct connector, detailing the necessary parameters and deployment procedures. It includes steps for deploying the IRF Provider Container WAR file, creating API server groups, and configuring JBoss settings. Additionally, it provides instructions for accessing the IRF Provider Container API using Postman.

Uploaded by

XIAOSHI LIU
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

10/7/24, 12:44 AM API Tier Configuration

 Guides   
 R24 AMR |  Min(s) read  Feedback

API Tier Configuration


You can now configure the API container to run with any connector, such as JMS or direct connector. The API container package will include all necessary connector
libraries, and it will initiate only the specified connector based on the configuration.

You need to configure the parameters com.temenos.iris.connector.name or -Dcom.temenos.iris.connector.name.<warfileName> to define the required
connector.

1. com.temenos.iris.connector.name=<connectorName> - This defines the connector for connecting all deployed API containers.
2. com.temenos.iris.connector.name.<warfileName>=<connectName> - This defines the connector for connecting the given API container war file.

For connectorName, You can configure jmsconnector for Queue-Mode and directconnector for Queue less-Mode. If you define any other values, it will consider the
default value as jmsconnector.

Example:

-Dcom.temenos.iris.connector.name=directconnector

This allows all the API container war files to run with direct connector only.

-Dcom.temenos.iris.connector.name=jmsconnector

This allows all the API container war files to run with JMS connector only.

-Dcom.temenos.iris.connector.name.irf-provider-container=directconnector

This connects the irf-provider-container.war with the direct connector and others based on their package definition.

NOTE:
When the container is built with the "buildForConfigurableConnectors" profile, Provide the required connector name as a JVM argument with the "com.temeno
s.iris.connector.name". However, if the argument is invalid, the JMS connector will be taken as the default connector.

Deploying Irf Provider Container War File

Direct Connector/Queue-less method


NOTE:
It is assumed that TAFJJEE is deployed successfully. For Queueless mode, You need to deploy IRF Provider war file where the TAFJJEE war file is deployed.

Procedure

1. Perform the below changes in irf-provider-container.war file.

https://docs.temenos.com/docs/Solutions/Runbooks/R24-S01-Runbook/t_api-tier-configuration.htm# 1/5
10/7/24, 12:44 AM API Tier Configuration

a. Modify the below lines into irf-comms-jms-context.xml located within irf-provider-container.war\WEB-INF\lib\irf-comms-jms-


202401.0.12.jar\META-INF\ folder.

<bean id="t24ConnectionFactory"
id="t24ConnectionFactory" class="com.temenos.irf.comms.jms.JMSConnectorFactory"
class="com.temenos.irf.comms.jms.JMSConnectorFactory"><property
><property name="propertyReader"
name="propertyReader" ref="t24Con
ref="t24Con

b. Insert the below lines into applicationContext.xml located within irf-provider-container.war\WEB-INF\classes\folder.

<bean id="t24ConnectionProperties"
id="t24ConnectionProperties" class=
class="com.temenos.irf.config.StandardPropertyReader"
"com.temenos.irf.config.StandardPropertyReader"><property
><property name="path"
name="path" value=
value="classpath:jm
"classpath:jm

2. Navigate to URL http://domain_server_IP:9990/console for Domain console page.


3. Click Deployments tab.
4. Navigate to Server Groups > App-Server-Group.
5. Click Upload new deployment and attach irf-provider-container.war file.
6. Once deployment is successful, you can see the below screen.

7. Start the JBoss app server with below command. Define -Dcom.temenos.iris.connector.name.irf-provider-container=directconnector in jvm
arguments to explicitly launch JBoss with direct connector.

./domain.sh --host-config=host-slave.xml --backup -Dcom.temenos.iris.connector.name.irf-provider-container=directconnector

Jms connector/Queue Mode


We can deploy the API war file on a separate server using this method because we rely on queues for connection. Before deploying the war file, it's essential to configure
the following queues.

Creating Api Server Group using Admin Console

Procedure

1. Navigate to URL http://domain_server_IP:9990/console to access domain console page.


2. Navigate to Runtime > Server Groups.

https://docs.temenos.com/docs/Solutions/Runbooks/R24-S01-Runbook/t_api-tier-configuration.htm# 2/5
10/7/24, 12:44 AM API Tier Configuration

3. Click Add Server Group and provide the below details such as Name, Socket Binding Group with full-ha Profile.

4. Click Add to create the Api-Server-Group.


5. Once the server group is created, proceed to add slave servers under the Api-Server-Group.

Configuring Api Server host-slave.xml

In the previous step, You have defined Api-Server-Group in the JBoss admin console. You need to make the corresponding changes to host-slave.xml of api servers.

NOTE:
It is assumed that JBoss is installed on the API Slave Servers.

Procedure

1. Navigate to $JBOSS_HOME/domain/configuration directory and open the host-slave.xml using default text editor.

vi $JBOSS_HOME/domain/configuration/host-slave.xml

2. Search for domain-controller and modify the username to JBoss admin user and host to master IP address. Example -

<domain-controller>
<remote security-realm="ManagementRealm"
security-realm="ManagementRealm" username="<Jboss
username="<Jboss Admin User>">
User>">
<discovery-options>
<static-discovery name="primary"
name="primary" protocol=
protocol="${jboss.domain.master.protocol:remote+http}"
"${jboss.domain.master.protocol:remote+http}" host=
host="<Master
"<Master IP>" port=
port="${jboss.domain.maste
"${jboss.domain.maste
</discovery-options>
</remote>
</domain-controller>

3. Search for interfaces section. Add the public and unsecure interfaces. Modify the ip address from 127.0.0.1 to master ip address. Example -

<interfaces>
<interface name="management"
name="management">>
value="${jboss.bind.address.management:127.0.0.1}"
<inet-address value= "${jboss.bind.address.management:127.0.0.1}"/>
/>
</interface>
<interface name="public"
name="public">>
<inet-address value="${jboss.bind.address:10.23.50.140}"
value="${jboss.bind.address:10.23.50.140}"/>
/>
</interface>
<interface name="unsecure"
name="unsecure">>
<inet-address value="${jboss.bind.address.unsecure:10.23.50.140}"
value="${jboss.bind.address.unsecure:10.23.50.140}"/>
/>

https://docs.temenos.com/docs/Solutions/Runbooks/R24-S01-Runbook/t_api-tier-configuration.htm# 3/5
10/7/24, 12:44 AM API Tier Configuration

</interface>
</interfaces>

4. Search for servers section and add the api server as shown below. You need to customize your JVM heap size and permgen space according to your server
capacity.
a. For Slave server 1:

<server name="Api-Server-One"
name="Api-Server-One" group=
group="Api-Server-Group"
"Api-Server-Group" auto-start=
auto-start="true"
"true" update-auto-start-with-server-status=
update-auto-start-with-server-status="false"
"false"><jvm
><jvm name="A
name="A

b. For Slave server 2:

<server name="Api-Server-Two"
name="Api-Server-Two" group=
group="Api-Server-Group"
"Api-Server-Group" auto-start=
auto-start="true"
"true" update-auto-start-with-server-status=
update-auto-start-with-server-status="false"
"false"><jvm
><jvm name="A
name="A

5. Once you complete the above steps, Start the JBoss slave servers using the below command:

./domain.sh --host-config=host-slave.xml --backup

Deploying the Irf- Provider-Container

Procedure

1. Navigate to URL http://domain_server_IP:9990/console to open the Domain console page.


2. Click Deployments tab.
3. Navigate to Server Groups > Api-Server-Group.
4. Before deploying irf-provider-container.war file, you need to deploy the wmq.jms.ra.rar file for MQ queues.
5. Click Upload new deployment and attach wmq.jms.ra.rar file. Then, click finish to upload and deploy.
6. Click Upload new deployment and attach irf-provider-container.war file. Then, click finish to upload and deploy.
7. Once deployment is successful, you can see the below console. Now, irf Provider container is deployed successfully.

Accessing the Irf-Provider-Container api


Procedure

1. Launch the Postman application.


2. Test the below URL using GET method in Postman.

http:
http ://10.23.50.140:8090/irf-provider-container/api/v2.2.0/reference/currencies/USD

https://docs.temenos.com/docs/Solutions/Runbooks/R24-S01-Runbook/t_api-tier-configuration.htm# 4/5
10/7/24, 12:44 AM API Tier Configuration

3. Once the URL is executed, You can see the below result.

https://docs.temenos.com/docs/Solutions/Runbooks/R24-S01-Runbook/t_api-tier-configuration.htm# 5/5

You might also like