Professional Documents
Culture Documents
How To Configure Batch File Listener With JBOSS
How To Configure Batch File Listener With JBOSS
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
17
1 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Step: 1: Create two jca/t24ConnectionFactory's in the t24-ds.xml for setup both browser and listeners.
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<?xml version="1.0" encoding="UTF-8"?>
<!-- -->
<!-- -->
<!-- jRemote resource adapter deployment for JBoss, configured for local connection -->
<!-- -->
<connection-factories>
<tx-connection-factory>
<jndi-name>jca/t24ConnectionFactoryBFL</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>
2 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
<max-pool-size>10</max-pool-size>
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<idle-timeout-minutes>15</idle-timeout-minutes>
</tx-connection-factory>
</connection-factories>
3 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Step: 2: Create queues separately to store browser and listener requests in the t24-destinations-service.xml file.
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<?xml version="1.0" encoding="UTF-8"?>
<!--
| This file defines the default Queues and Topics that JBossMQ
| ships with. The default Queues and Topics are used by the
| You can add other destinations to this file, or you can create other
-->
<server>
create=false.
-->
<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=t24OFSQueueBFL">
<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=t24OFSReplyQueueBFL">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
</mbean>
</server>
4 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
<display-name>OFSMessage</display-name>
<enterprise-beans>
<message-driven id="MessageDriven_OfsMessageMDBBFL">
<display-name>OFSMessage Bean</display-name>
<ejb-name>OFSMessageMDBBFL</ejb-name>
<ejb-class>com.temenos.tocf.ofsmessage.mdb.OFSMessageMDB</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Bean</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type>
<activation-config>
<activation-config-property>
<activation-config-property-name>acknowledgeMode</activation-config-property-name>
<activation-config-property-value>Auto-acknowledge</activation-config-property-value>
</activation-config-property>
</activation-config>
<resource-ref id="ResourceRef_jmsQueueConnectionFactoryBFL">
<res-ref-name>jms/jmsConnectionFactory</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
5 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
</resource-ref>
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<resource-ref id="ResourceRef_t24ConnectionFactoryBFL">
<res-ref-name>eis/t24ConnectionFactory</res-ref-name>
<res-type>com.temenos.tocf.t24ra.T24ConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref id="ResourceRef_t24OFSReplyQueueBFL">
<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>
<!--
<assembly-descriptor>
<security-role>
<role-name>t24user</role-name>
</security-role>
<method-permission>
<role-name>t24user</role-name>
<method>
<ejb-name>OFSMessageMDB</ejb-name>
<method-name>*</method-name>
6 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
</method>
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
</method-permission>
</assembly-descriptor>
-->
</ejb-jar>
7 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Step: 4: In jboss.xml present under the tocfOFSmessage-ejb.jar (…\jboss5.1.0.GA\server\default\deploy\ tocfee.ear\tocfOFSmessage-ejb.jar\META-INF\), map the q
((//ss/to
ueue names and connection factories /)) theirC
Coommmmuun
niittyyresource LLe
respective eaarrn
n
reference PPrro
definedodduucctejb-jar.xml
in tss TTrra
aiin
niin
ngg
file(which D
Doow
wnnllo
is present oaad
dss tocfee.ear\tocfOFSmessage-ejb.ja
under SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
r\META-INF).
"http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<jboss>
<!--
<security-domain>java:/jaas/T24App</security-domain>
-->
<enterprise-beans>
<message-driven>
<ejb-name>OFSMessageMDBBFL</ejb-name>
<destination-jndi-name>queue/t24OFSQueueBFL</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/jmsConnectionFactory</res-ref-name>
<jndi-name>java:/ConnectionFactory</jndi-name>
</resource-ref>
<resource-ref>
<res-ref-name>queue/t24OFSReplyQueue</res-ref-name>
<!-- <res-type>javax.jms.Queue</res-type>
-->
<jndi-name>queue/t24OFSReplyQueueBFL</jndi-name>
</resource-ref>
<resource-ref>
<res-ref-name>eis/t24ConnectionFactory</res-ref-name>
8 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
<jndi-name>java:jca/t24ConnectionFactoryBFL</jndi-name>
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<!-- <res-type>com.jbase.jremote.JConnectionFactory</res-type>
-->
</resource-ref>
</message-driven>
</enterprise-beans>
</jboss>
9 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Step: 5: In tcserver.xml present under the tocfplugin-ra.rar (…\jboss5.1.0.GA\server\default\deploy\ tocfee.ear\tocfplugin-ra.rar\), create a raw-tcp listener
((//ss//)) separate
and tcp listener and we need to create CCo
ommmmuun
niittyyfor each LLe
adapter eaarrn
n
listener. PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<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>
<!--
10 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Configure the charset of the incoming messages. By default the tocflistner is expecting to
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
receive messages encoded in the Java platform default Charset. You may either use a request
formatter to change the messages format to the default encoding or inform the tocflistener of
<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>
<REQUEST_FORMATTER>OFSML</REQUEST_FORMATTER>
<RESPONSE_FORMATTER>OFSML</RESPONSE_FORMATTER>
<MAX_SESSION>5</MAX_SESSION>
<MIN_SESSION>5</MIN_SESSION>
<TIMEOUT>60</TIMEOUT>
</ADAPTER>
</ADAPTERS>
<MESSAGEFORMATTERS>
<!--================================================
11 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
=================================================-->
<FROM>CP838</FROM>
<TO>UTF-8</TO>
</MESSAGEFORMATTER>
<FROM>UTF-8</FROM>
<TO>CP838</TO>
</MESSAGEFORMATTER>
</MESSAGEFORMATTERS>
<LISTENERS>
<ADAPTERID>T24</ADAPTERID>
<DIR_IN>C:\temp\sv\ofsrequests</DIR_IN>
<DIR_OUT>C:\temp\sv\ofsresponses</DIR_OUT>
<DIR_ERR>C:\temp\sv\ofserrors</DIR_ERR>
<MAX_PROCESS>0</MAX_PROCESS>
<EXTENSION_INDEX>idx</EXTENSION_INDEX>
<EXTENSION_TOPROCESS>tpr</EXTENSION_TOPROCESS>
<EXTENSION_PROCESSED>pro</EXTENSION_PROCESSED>
<EXTENSION_ERROR>err</EXTENSION_ERROR>
<EXTENSION_RESPONSE>rsp</EXTENSION_RESPONSE>
<REQ_SEPARATOR>lf</REQ_SEPARATOR>
12 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
<SORT_DIRECTORY>true</SORT_DIRECTORY>
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<DELETE_SOURCE>true</DELETE_SOURCE>
</LISTENER>
<ADAPTERID>T24</ADAPTERID>
<PORT>10003</PORT>
<DOWNLOAD_PATH>C:\temp\doc</DOWNLOAD_PATH>
<STREAM_PROVIDER>FileInputStreamProvider</STREAM_PROVIDER>
<UPLOAD_PATH>C:\temp\doc</UPLOAD_PATH>
<STREAM_WRITER>FileOutputStreamWriter</STREAM_WRITER>
</LISTENER>
<ADAPTERID>T24</ADAPTERID>
<PORT>10004</PORT>
<DBINOUT>
<DATASOURE_NAME>jdbc/T24DS</DATASOURE_NAME>
<ID_COLUMN_NAME>RECID</ID_COLUMN_NAME>
<DATA_COLUMN_NAME>XMLRECORD</DATA_COLUMN_NAME>
</DBINOUT>
<STREAM_PROVIDER>DbInputStreamProvider</STREAM_PROVIDER>
<STREAM_WRITER>DbOutputStreamWriter</STREAM_WRITER>
</LISTENER>
</LISTENERS>
</TCSERVER>
Note:
13 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Set 'false' for other listeners if you are not going to use.
Create separate adapter for each listener. We should not use the same adapter for listeners.
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
14 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
<display-name>OFSListeners</display-name>
<enterprise-beans>
<message-driven id="MessageDriven_OFSListenerMDBBFL">
<display-name>OFSListener Bean</display-name>
<ejb-name>OFSListenerMDBBFL</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>BFL</activation-config-property-value>
</activation-config-property>
</activation-config>
<resource-ref id="ResourceRef_OFSListenerMDB_jmsQueueConnectionFactoryBFL">
<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_t24OFSQueueBFL">
<description>OFS queue</description>
15 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
<res-ref-name>queue/t24OFSQueue</res-ref-name>
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
<res-type>javax.jms.Queue</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref id="ResourceRef_OFSListenerMDB_t24OFSReplyQueueBFL">
<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>
Note: Comment the other Message-driven beans if you are not using.
16 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Step: 7: In jboss.xml present under the tocflistener-ejb.jar (…\jboss5.1.0.GA\server\default\deploy\ tocfee.ear\tocflistener-ejb.jar\META-INF\), map the queue
names to their respective resource((//s
s//)) C
referenceCo
ommmmuun
defined niit
intyyejb-jar.xml
LLe
eaarfile(which
rn
n PPr
ro
is od
duuccttss under tocfee.ear\tocflistener-ejb.jar\META-INF).
present TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
"http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<jboss>
<enterprise-beans>
<message-driven>
<ejb-name>OFSListenerMDBBFL</ejb-name>
<resource-adapter-name>tocfee.ear#tocfplugin-ra.rar</resource-adapter-name>
<resource-ref>
<res-ref-name>jms/jmsConnectionFactory</res-ref-name>
<jndi-name>java:/ConnectionFactory</jndi-name>
</resource-ref>
<resource-ref>
<res-ref-name>queue/t24OFSQueue</res-ref-name>
<jndi-name>queue/t24OFSQueueBFL</jndi-name>
</resource-ref>
<resource-ref>
<res-ref-name>queue/t24OFSReplyQueue</res-ref-name>
<jndi-name>queue/t24OFSReplyQueueBFL</jndi-name>
</resource-ref>
</message-driven>
</enterprise-beans>
</jboss>
17 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Note: Comment the other Message-driven beans if you are not using.
((//ss//)) C
Coom
mmmu
unniittyy LLe
eaarrn
n PPrro
oddu
uccttss TTrra
aiin
niin
ngg D
Doow
wnnllo
oaad
dss SSu
uggg
geesstt ((//ss//iid
deea
attiio
onn))
Establishing connection to browser and listener:
Starting of jbase_agent
To connect to the environment, we need to start jbase_agent with the port number (9901) as specified in t24-ds.xml.
Starting of JBoss
JBoss can be started by executing the run.bat file present in (..\jboss5.1.0.GA\bin) directory or by using the start command shown below,
C
C::\\ jjb
boossss55..11..00..G
GAA\\b
biin
n>>rru
unn..b
baatt --b
b 00..00..00..00
N
Nootte
e:: In UNIX, use run.sh command to start Jboss.
0 Comments
PPo
osstt Q
Quue
essttiio
onn
18 of 19 2/10/2023, 7:41 PM
How to Configure Batch File Listener with JBOSS https://basecamp.temenos.com/s/article-detail/a042K00001KIplEQAT/how-to-configure-batch-...
Sort by:
Collaborate here!
Here's where you start talking with your colleagues about this.
19 of 19 2/10/2023, 7:41 PM