How To Configure Custom Listener Using TOCF (EE) in Jboss
How To Configure Custom Listener Using TOCF (EE) in Jboss
((//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))
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
Introduction
The purpose of this document is to add the custom listener in TOCF(EE) using JBoss.
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...
<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>
<min-pool-size>6</min-pool-size>
<max-pool-size>10</max-pool-size>
<idle-timeout-minutes>15</idle-timeout-minutes>
<!--
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>
<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))
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...
<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)
-->
<!--
-->
<!-- 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
-->
<TIMEOUT>60</TIMEOUT>
</ADAPTER>
</ADAPTERS>
<MESSAGEFORMATTERS>
<!--================================================
=================================================-->
<FROM>CP838</FROM>
<TO>UTF-8</TO>
</MESSAGEFORMATTER>
<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>
<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...
<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">
<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
Sort by:
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.
15 of 15 2/10/2023, 8:16 PM