Platform Framework
R24 AMR | Min(s) read

TAFJ Application Deployment

This section shows the TAFJ servlets that helps you to deploy TAFJ applications.

For TAFJ application deployment, you need to copy the %TAFJ_HOME%\appserver\jboss\jboss7eap\TAFJJEE_EAR.ear file and paste it in %JBOSS_HOME%\standalone\deployments.

The TAFJJEE_EAR.ear file sets MDB (TAFJJEE_MDB.jar) and EJB (TAFJJEE_EJB.jar) to read messages from JMS Queues, call Temenos Transact and publish response in reply queues. It also contains a WAR file to deploy helper servlet.

For more details, see the TAFJ-AS TAFJ documentation.

tDiag Servlet

TAFJJEE_WAR_TAFJ contains a servlet which can be used to get details about TAFJ installation.

tShow Servlet

TAFJJEE_WAR_TAFJ contains a servlet which can be used to get compilation details about a specific routine.

Use JF.INITIALISE.CONNECTION to get the details.

Execute Servlet

TAFJJEE_WAR_TAFJ contains a servlet which can be used to post message to the JMS queue t24ExeqQueue.

To post START.TSM, submit START.TSM in the form.

The following property needs to be set correctly to run TAFJ within an application server context.

temn.tafj.runtime.phantom.as.process = false

Other TAFJEE Functions

TAFJEE application offers many other functions like monitoring, changing log level, como viewer, etc. For more information, see TAFJ AS documentation.

TemnKafka Resource Adapter Deployment

Kafka MDB consumes message from Kafka Topic and sends the response using TemnKafka resource Provider. The TemnKafka.rar file is available at TAFJ_HOME/appserver.

  1. Deploy TemnKafka.rar in appserver and configure the bootstrap server URL, replyTopic, and responseTopic in TAFJEE_MDB/META-INF/ejb-jar.xml.
  2. Configure TAFJEE_MDB.jar/jboss-ejb3.xml with Kafka server details if required.
    <message-driven>
        			 <ejb-name>KafkaMDB</ejb-name>
    				 <activation-config>
    					<activation-config-property>
    						<activation-config-property-name>clientId</activation-config-property-name>
    						<activation-config-property-value>TAFJClient</activation-config-property-value>
    					</activation-config-property> 
    					<activation-config-property>
    						<activation-config-property-name>groupIdConfig</activation-config-property-name>
    						<activation-config-property-value>test-consumer-group</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>topics</activation-config-property-name>
    						<activation-config-property-value>requestTopic</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>bootstrapServersConfig</activation-config-property-name>
    						<activation-config-property-value>localhost:9092</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>autoCommitInterval</activation-config-property-name>
    						<activation-config-property-value>100</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>retryBackoff</activation-config-property-name>
    						<activation-config-property-value>1000</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>keyDeserializer</activation-config-property-name>
    						<activation-config-property-value>org.apache.kafka.common.serialization.StringDeserializer</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>valueDeserializer</activation-config-property-name>
    						<activation-config-property-value>org.apache.kafka.common.serialization.StringDeserializer</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>pollInterval</activation-config-property-name>
    						<activation-config-property-value>300</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>commitEachPoll</activation-config-property-name>
    						<activation-config-property-value>true</activation-config-property-value>
    					</activation-config-property>
    					<activation-config-property>
    						<activation-config-property-name>useSynchMode</activation-config-property-name>
    						<activation-config-property-value>true</activation-config-property-value>
    					</activation-config-property>
    				</activation-config>
    
  3. Add the subsystem in standalone.xml as shown below.
    <subsystem xmlns="urn:jboss:domain:resource-adapters:6.0">
    <resource-adapters>
    <resource-adapter id="TemnKafkaRAR">
    <archive>
    TemnKafka.rar
    </archive>
    <transaction-support>XATransaction</transaction-support>
    <connection-definitions>
    <connection-definition class-name="com.temenos.technology.kafka.outbound.TemnKafkaManagedConnectionFactory" jndi-name="java:/eis/KafkaConnectionFactory" enabled="true" tracking="false" pool-name="ConnectionFactory">
    <xa-pool>
    <min-pool-size>1</min-pool-size>
    <max-pool-size>20</max-pool-size>
    <prefill>false</prefill>
    <is-same-rm-override>false</is-same-rm-override>
    </xa-pool>
    </connection-definition>
    </connection-definitions>
    </resource-adapter>
    </resource-adapters>
    </subsystem>
    

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:10:32 PM IST