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

How To Configure Custom Listener Using TOCF (EE) in Jboss

This document provides instructions on how to configure a custom listener using Temenos Open Connector Framework (TOCF) Enterprise Edition (EE) in JBoss. It describes deploying the required TOCF(EE) components in JBoss, including the tocfT24ra-rar, t24-ds.xml, t24-destinations-service.xml, tocfOFSmessage-ejb.jar, tocflistener-ejb.jar, and tocfplugin-ra.rar files. It also explains configuring these files, specifically creating a t24ConnectionFactory in the t24-ds.xml file to set up the jca/t24ConnectionFactory.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
198 views

How To Configure Custom Listener Using TOCF (EE) in Jboss

This document provides instructions on how to configure a custom listener using Temenos Open Connector Framework (TOCF) Enterprise Edition (EE) in JBoss. It describes deploying the required TOCF(EE) components in JBoss, including the tocfT24ra-rar, t24-ds.xml, t24-destinations-service.xml, tocfOFSmessage-ejb.jar, tocflistener-ejb.jar, and tocfplugin-ra.rar files. It also explains configuring these files, specifically creating a t24ConnectionFactory in the t24-ds.xml file to set up the jca/t24ConnectionFactory.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))

How to configure custom listener using TOCF(EE) in jboss


Explore product details, discuss issues, find the latest news, and
contribute to best practices.

How to (/s/how-to)  >  How to configure custom listener using TOCF(EE) in jboss

        
Rate Like Bookmark

(/s/profile/0056A000000izetQAA) H
Hoow
w tto
occo
onnffiig
guurre
eccu
usstto
omm l iisstte
enne
err u
ussiin
ngg TTO
OCCFF((EEEE)) iin
n jb
boossss
Vinay Jain - Admin (/s/profile/0056A000000izetQAA)  •  Apr 14, 2021  •  Technology > Core-Tech > Temenos Connectors (TC)

      34

How to configure custom listener using TOCF(EE) in jboss

Introduction
The purpose of this document is to add the custom listener in TOCF(EE) using JBoss.

Deployment of Components in Jboss


Kindly make ensure that the following files are present under the path (…\jboss\server\default\deploy).
1.         tocfT24ra-ra.rar
2.         t24-ds.xml                              
3.         t24-destinations-service.xml     
4.         tocfOFSmessage-ejb.jar (present in the tocfee.ear)
5.          tocflistener-ejb.jar (present in the tocfee.ear)
6.         tocfplugin-ra.rar (present in the tocfee.ear)
N
Noottee:: TOCF(EE)13.0.0.1 will contain both tocfT24ra-ra.rar and tocfee.ear files.
The components will get deployed once the JBoss is started.

Configuration of the Files

1 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

SStteep
p:: 11 Create a t24ConnectionFactory in the tt2244--d
dss..xxm
mll for setup jca/t24ConnectionFactory.
((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))

2 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

<?xml version="1.0" encoding="UTF-8"?>


((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<connection-factories>

<tx-connection-factory>

<jndi-name>jca/t24ConnectionFactory</jndi-name>

<rar-name>tocfT24ra-ra.rar</rar-name>

<connection-definition>com.temenos.tocf.t24ra.T24ConnectionFactory</connection-definition>

<config-property name="hosts" type="java.lang.String">127.0.0.1</config-property>

<config-property name="ports" type="java.lang.String">20100</config-property>

<config-property name="loadBalancing" type="java.lang.Boolean">true</config-property>

<config-property name="allowInput" type="java.lang.Boolean">true</config-property>

<config-property name="compression" type="java.lang.Boolean">true</config-property>

<config-property name="compressionThreshold" type="java.lang.Integer">2048</config-property>

<config-property name="envVariables" type="java.lang.String">OFS_SOURCE=TELNET</config-property>

<config-property name="actionTimeout" type="java.lang.Integer">90</config-property>

<config-property name="charset" type="java.lang.String">UTF-8</config-property>

<min-pool-size>6</min-pool-size>

<max-pool-size>10</max-pool-size>

<idle-timeout-minutes>15</idle-timeout-minutes>

<!--

<config-property name="debugPort" type="java.lang.Integer">30097</config-property>

<config-property name="SSL" type="java.lang.Boolean">true</config-property>

<config-property name="NaiveTrustManager" type="java.lang.Boolean">true</config-property>

<config-property name="account" type="java.lang.String">MYACCOUNT</config-property>

<config-property name="user" type="java.lang.String">test</config-property>

<config-property name="password" type="java.lang.String">account_password</config-property>

3 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

-->

((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
</tx-connection-factory>

</connection-factories>

Step: 2 Create t24OFSQueue and t24OFSReplyQueue created in the t24-destinations-service.xml

<mbean code="org.jboss.mq.server.jmx.Queue"

name="jboss.mq.destination:service=Queue,name=t24OFSQueue">

<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>

</mbean>

<mbean code="org.jboss.mq.server.jmx.Queue"

name="jboss.mq.destination:service=Queue,name=t24OFSReplyQueue">

<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>

</mbean>

SStteep
p:: 44
i) 'ListenerTest.jar' has been built as custom listener. It will send the request to T24 at the interval of '7' seconds and will write the log in the file 'ListenerTest.log'.
ii) Place the 'ListenerTest.jar' inside the tocfee.ear/tocfplugin-ra.rar

iii)) Add the jar file listener name in the MANIFEST.MF of tocfplugin.jar and tocfplugin-ra.rar.

4 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))

iv)Create listener entry in the tcserver.xml file.


<LISTENER id="TSTMQLIST" type="ListenerTest" active="true">
         <ADAPTERID>T24</ADAPTERID>
        <MQ_HOST>172.0.0.232</MQ_HOST>
        <MQ_PORT>1424</MQ_PORT>

5 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

        <MQ_QMGR>QMGR.TST.X21</MQ_QMGR>
        <MQ_CHL>CHL.CLI.01</MQ_CHL> ((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
        <MQ_QRQ>Q.RQ.01</MQ_QRQ>
        <MQ_QRP>Q.RP.01</MQ_QRP>
        <MQ_USER>mqm</MQ_USER>
        <SLEEP>2000</SLEEP>
        <SPNSZ>40</SPNSZ>
        <DB_HOST>172.0.0.236</DB_HOST>
        <DB_PORT>1521</DB_PORT>
        <DB_SID>logdb</DB_SID>
        <DB_USER>scott</DB_USER>
        <DB_PASS>123456</DB_PASS>
        <DB_LOG>false</DB_LOG>
        <T24UNAME>BANK.WORLD</T24UNAME>
        <T24PASSWD>123456</T24PASSWD>
        <T24ANAME>BANK.WORLD.AUTH</T24ANAME>
        <T24APASSWD>123456</T24APASSWD>
</LISTENER>
SStteep p:: 33
In ttccsseerrvveerr..xxm
mll present under the tocfplugin-ra.rar (…\jboss\server\default\deploy\ tocfee.ear\tocfplugin-ra.rar\), use default adapter 'TOCF' and create raw-tcp and
batchfile listener.

6 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

<?xml version="1.0" ?>


((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<!-- DOCTYPE LISTENER SYSTEM "../dtd/LISTENER.dtd" -->

<!-- GLOBUS Connector communications server LISTENERs definitions -->

<!-- T&R Department 2002 -->

<!-- Please check the installation documentation for a detailed

description of this file -->

<TCSERVER>

<ADAPTERS>

<!--

This type of adapter 'TOCF' will process requests using the message endpoint (tocflistener-mdb)

that activated the plugin. An adapter instance will process messages using at most one tocflistener-mdb.

If you require more than one tocflistener-mdb configuration to be called (for different listeners)

then you must configure one ADAPTER instance per tocflistener-mdb.

-->

<ADAPTER id="T24" type="TOCF" active="true">

<!--

<REQUEST_FORMATTER>Thai2UTF, OFSML, UTF2Thai</REQUEST_FORMATTER>

<RESPONSE_FORMATTER>Thai2UTF, OFSML, UTF2Thai</RESPONSE_FORMATTER>

-->

<!-- Configure the number of threads that will deliver messages to the associated tocflistener-mdb -->

<MAX_SESSION>20</MAX_SESSION>

<MIN_SESSION>20</MIN_SESSION>

<!--

Configure the charset of the incoming messages. By default the tocflistner is expecting to

receive messages encoded in the Java platform default Charset. You may either use a request

7 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

formatter to change the messages format to the default encoding or inform the tocflistener of

((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
the encoding of the message using the following parameter.

<CHARSET>UTF-8</CHARSET>

-->

<!--

Configure the number of seconds this adapter will wait for the processing of a message.

NOTE - this adapter delivers messages the tocflistener-mdb which in turn delivers the

message to the ofsRequestQueue for processing. The following timeout should be a value

longer than the total time for this processing including the possible retries of the

ofsmessage-mdb. See the TOCF(EE) user guide for more details.

-->

<TIMEOUT>60</TIMEOUT>

</ADAPTER>

</ADAPTERS>

<MESSAGEFORMATTERS>

<!--================================================

Sample Formatters converting charsets

=================================================-->

<MESSAGEFORMATTER id="Thai2UTF" type="charsetformatter">

<FROM>CP838</FROM>

<TO>UTF-8</TO>

</MESSAGEFORMATTER>

<MESSAGEFORMATTER id="UTF2Thai" type="charsetformatter">

<FROM>UTF-8</FROM>

<TO>CP838</TO>

</MESSAGEFORMATTER>

8 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

</MESSAGEFORMATTERS>
((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))

<LISTENERS>

<LISTENER id="TSTMQLIST" type="ListenerTest" active="true">

<ADAPTERID>T24</ADAPTERID>

<MQ_HOST></MQ_HOST>

<MQ_PORT>1424</MQ_PORT>

<MQ_QMGR>QMGR.TST.X21</MQ_QMGR>

<MQ_CHL>CHL.CLI.01</MQ_CHL>

<MQ_QRQ>Q.RQ.01</MQ_QRQ>

<MQ_QRP>Q.RP.01</MQ_QRP>

<MQ_USER>mqm</MQ_USER>

<SLEEP>2000</SLEEP>

<SPNSZ>40</SPNSZ>

<DB_HOST></DB_HOST>

<DB_PORT>1521</DB_PORT>

<DB_SID>logdb</DB_SID>

<DB_USER>scott</DB_USER>

<DB_PASS>123456</DB_PASS>

<DB_LOG>false</DB_LOG>

<T24UNAME>BANK.WORLD</T24UNAME>

<T24PASSWD>123456</T24PASSWD>

<T24ANAME>BANK.WORLD.AUTH</T24ANAME>

<T24APASSWD>123456</T24APASSWD>

</LISTENER>

</LISTENERS>

9 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

</TCSERVER>

((//ss//)) C
Coommm
mu un
niittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
N
Noottee:: Kindly set 'false' other listeners if you are not being used. Please create separate adapters for each listeners.
SStteep
p:: 44::
In eejjb
b--jjaarr..xxm
mll present under the tocflistener -ejb.jar (…\jboss\server\default\deploy\ tocfee.ear\tocflistener-ejb.jar\META-INF\)

10 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

<?xml version="1.0" encoding="UTF-8"?>


((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<ejb-jar id="EJBJar_TOCFListenerMDB" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocatio
n="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">

<display-name>OFSListeners</display-name>

<enterprise-beans>

<message-driven id="MessageDriven_OFSListenerMDB">

<display-name>OFSListener Bean</display-name>

<ejb-name>OFSListenerMDB</ejb-name>

<ejb-class>com.temenos.tocf.listener.mdb.TOCFListenerMDB</ejb-class>

<messaging-type>com.temenos.tocf.common.jca.OFSMessageListener</messaging-type>

<transaction-type>Bean</transaction-type>

<activation-config>

<activation-config-property>

<activation-config-property-name>listener</activation-config-property-name>

<activation-config-property-value>TSTMQLIST</activation-config-property-value>

</activation-config-property>

</activation-config>

<resource-ref id="ResourceRef_OFSListenerMDB_jmsQueueConnectionFactory">

<res-ref-name>jms/jmsConnectionFactory</res-ref-name>

<res-type>javax.jms.QueueConnectionFactory</res-type>

<res-auth>Container</res-auth>

</resource-ref>

<resource-ref id="ResourceRef_OFSListenerMDB_t24OFSQueue">

<description>OFS queue</description>

<res-ref-name>queue/t24OFSQueue</res-ref-name>

11 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

<res-type>javax.jms.Queue</res-type>
((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))

<res-auth>Container</res-auth>

</resource-ref>

<resource-ref id="ResourceRef_OFSListenerMDB_t24OFSReplyQueue">

<description>OFS reply queue</description>

<res-ref-name>queue/t24OFSReplyQueue</res-ref-name>

<res-type>javax.jms.Queue</res-type>

<res-auth>Container</res-auth>

</resource-ref>

</message-driven>

</enterprise-beans>

</ejb-jar>

EEsstta
abblliissh
hiin
ngg  cco
onnn
neeccttiio
onn tto
o TT2244 u
ussiin
ngg ''LLiisstteen
neerrTTeesstt''::
SStta
arrttiin
nggo
off jjb
baassee__a
aggeen
ntt
To connect to the T24 environment, we need to start jbase_agent with the port number (20100) as specified in t24-ds.xml.

SStta
arrttiin
nggo
off JJBBo
ossss
JBoss can be started by executing the run.bat file present in (..\jboss\bin) directory or by using the start command shown below,
C
C::\\ jjb
boossss\\b
biin
n>>rru
unn..b
baatt    --b
b 00..00..00..00

12 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))

LLiisstteen
neerrTTeesstt::

13 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))

 
 

0 Comments

PPo
osstt Q
Quueessttiio
onn

Share an update... Share

Sort by:

Most Recent Activity Search this feed...

14 of 15 2/10/2023, 8:16 PM
How to configure custom listener using TOCF(EE) in jboss https://basecamp.temenos.com/s/article-detail/a042K00001KInRuQAL/how-to-configure-cust...

((//ss//)) C
Coom
mmmu
unniittyy LLeea
arrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))

Collaborate here!
Here's where you start talking with your colleagues about this.

Supplier Information Terms of use Base Camp FAQ


www.temenos.com (https://www.temenos.com (https://www.temenos.com (https://basecamp.temenos.com Follow US
nformation /information-for- /legal-information /s/article-detail
suppliers/) /website-terms-and- /a046A000001lZe4QAE/temenos- (https://www.linkedin.com (https://www.linkedin.com (
conditions/) base-camp-faq) /company/temenos) /company/temenos/) /Temenos

15 of 15 2/10/2023, 8:16 PM

You might also like