Technical Ack Nack Configurations Setup

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

Technical ack nack Configurations:

Bean addition in TAFJEAR file:

Ejb-jar.xml
<session>

<description>TAFJ TPH Bean</description>

<display-name>TAFJ TPH Bean</display-name>

<ejb-name>TPHProcessingBean</ejb-name>

<business-local>com.temenos.tafj.sb.OFSProcessingBeanLocal</business-local>

<business-remote>com.temenos.tafj.sb.OFSProcessingBeanRemote</business-
remote>

<ejb-class>com.temenos.tafj.sb.OFSProcessingBean</ejb-class>

<session-type>Stateless</session-type>

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

<!-- For tafj session -->

<env-entry>

<description>service name for property injection set by default to EJB


prefix to lower case</description>

<env-entry-name>channelName</env-entry-name>

<env-entry-type>java.lang.String</env-entry-type>

<env-entry-value>tph</env-entry-value>

</env-entry>

<env-entry>

<description>TPH OFS Source</description>

<env-entry-name>ofsSource</env-entry-name>

<env-entry-type>java.lang.String</env-entry-type>

<env-entry-value>TPH.ACK.RESPONSE</env-entry-value>

</env-entry>
<env-entry>

<env-entry-name>ofsTimeout</env-entry-name>

<env-entry-type>java.lang.Integer</env-entry-type>

<env-entry-value>180</env-entry-value>

</env-entry>

<!-- for T24 purpose -->

<resource-ref>

<description>Used to get connections from T24 jdbc pool</description>

<res-ref-name>jdbc/t24DataSource</res-ref-name>

<res-type>javax.sql.DataSource</res-type>

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

</resource-ref>

<resource-ref>

<description>Used to get connections from jdbc locking


pool</description>

<res-ref-name>jdbc/t24LockingDataSource</res-ref-name>

<res-type>javax.sql.DataSource</res-type>

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

</resource-ref>

<resource-ref>

<description>Used to get connections from T24 jdbc RO


pool</description>

<res-ref-name>jdbc/t24RODataSource</res-ref-name>

<res-type>javax.sql.DataSource</res-type>

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

</resource-ref>

<!-- TPH Outward requirement -->

<resource-ref>
<description>Used to get connections to JMS for OFS
queues</description>

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

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

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

</resource-ref>

<resource-ref>

<description>Print Hold</description>

<res-ref-name>eis/PrintHold</res-ref-name>

<res-type>javax.resource.cci.ConnectionFactory</res-type>

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

</resource-ref>

</session>

Jboss-ejb3.xml
<session>

<ejb-name>TPHProcessingBean</ejb-name>

<resource-ref>

<res-ref-name>jdbc/t24DataSource</res-ref-name>

<res-type>javax.sql.DataSource</res-type>

<jndi-name>java:/jdbc/t24DS</jndi-name>

</resource-ref>

<resource-ref>

<res-ref-name>jdbc/t24RODataSource</res-ref-name>

<res-type>javax.sql.DataSource</res-type>

<jndi-name>java:/jdbc/t24RODS</jndi-name>

</resource-ref>

<resource-ref>

<res-ref-name>jdbc/t24LockingDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>

<jndi-name>java:/jdbc/t24LockingDS</jndi-name>

</resource-ref>

<resource-ref>

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

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

<jndi-name>java:/ConnectionFactory</jndi-name>

</resource-ref>

<resource-ref>

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

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

<jndi-name>java:/topic/tecEventsTopic</jndi-name>

</resource-ref>

<resource-ref>

<res-ref-name>eis/PrintHold</res-ref-name>

<res-type>javax.resource.cci.ConnectionFactory</res-type>

<jndi-name>java:/eis/PrintHold</jndi-name>

</resource-ref>

</session>

TAFJJEE_MDB.jar
Ejb.jar.xml
<message-driven>

<display-name>Transacted Listener MDB for TPH</display-name>

<ejb-name>TPHTransactedMDB</ejb-name>

<ejb-class>com.temenos.tafj.mdb.TransactedMDB</ejb-class>

<messaging-type>javax.jms.MessageListener</messaging-type>

<transaction-type>Container</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type>

<ejb-local-ref>

<ejb-ref-name>ejb/OFSProcessingBeanLocal</ejb-ref-name>

<ejb-ref-type>Session</ejb-ref-type>

<local>com.temenos.tafj.sb.OFSProcessingBeanLocal</local>

<ejb-link>TPHProcessingBean</ejb-link>

</ejb-local-ref>

<env-entry>

<description>service name for property injection set by default to EJB


prefix to lower case</description>

<env-entry-name>channelName</env-entry-name>

<env-entry-type>java.lang.String</env-entry-type>

<env-entry-value>tph</env-entry-value>

</env-entry>

<resource-ref>

<description>Used to get connections to JMS for OFS


queues</description>

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

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

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

</resource-ref>

<message-destination-ref>

<description>TPH queue</description>

<message-destination-ref-name>jms/ReplyQueue</message-
destination-ref-name>

<message-destination-type>javax.jms.Queue</message-destination-
type>

<message-destination-usage>Produces</message-destination-usage>

<message-destination-link>jms/TPHAckNackReplyQueue</message-
destination-link>
</message-destination-ref>

</message-driven>

Jboss-ejb3.xml
<message-driven>

<ejb-name>TPHTransactedMDB</ejb-name>

<activation-config>

<activation-config-property>

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

<activation-config-property-value>java:/queue/t24TPHAckNackQueue</activation-config-
property-value>

</activation-config-property>

<activation-config-property>

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

<activation-config-property-value>javax.jms.Queue</activation-
config-property-value>

</activation-config-property>

<activation-config-property>

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

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

</activation-config-property>

</activation-config>

<resource-ref>

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

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

<jndi-name>java:/JmsXA</jndi-name>

</resource-ref>
<message-destination-ref>

<message-destination-ref-name>jms/ReplyQueue</message-
destination-ref-name>

<jndi-name>java:/queue/t24TPHAckNackReplyQueue</jndi-name>

</message-destination-ref>

</message-driven>
BFW provided the below data record.
DE.INTERFACE: (ACK required should be ‘Y’)

DE.CARRIER: (DLN Requested should be ‘Yes’)


IF.INTEGRATION.SERVICE.PARAM:

In DE.O.HEADER msg disposition should be Wack(Waiting for acknowledgement).

Tags which needs to be changed in Acknowledgement file:

i) <SenderReference> - Carrier Seq No

ii) <NetworkDeliveryStatus> - ‘NetworkAcked’ [For positive response]

‘NetworkNacked’ [For Negative response]

File:

You might also like