Table
of Contents |
Previous
|
Next
Use case UC003 - Self checkout boxes (Pecuron) status data transfer
to a central Pecuron managment software
A Self Checkout Box will be sending status data as a JMS message to the
System. The System must watch the appropriate message queue and transfer
the incoming message to the head office Backbone Service Bus. At the beginning
and end of the processing the System must be generate events containing
information about the transaction status.
The picture below shows this use case in detail. JKHLE has taken care from
the beginning that with introduction of these new Self Checkout Devices
a near real-time and messaging based approach for data transfer is being
established.
Use case UC003
The example is of a transfer of a status message from such a Self Checkout
(Pecuron) Device to the PBOA (Pecuron Back Office Application) that resides
centrally on an application server cluster for all retail stores of JKHLE.
See the message below for simulation of the application with an embedded
micro broker JMS Client on a Pecuron Device. For testing purposes you could
put this (text) message in the appropriate micro broker queue with HermesJMS.
Info
In the real scenario this is a message a Pecuron sends to the head office
to indicate it is "ready for service".
100
P1236
2008-12-01T16:10:54
1228144254066
232
BackOfficeLogger
INFO
de.algotec.customer.ibm.pecuron.devices.TrafficLightUtils
handleBOLogging
10
StatusIndicators
TlTop
0
TlMid
0
TlBot
1
For routing purposes you need to define one in-queue for each Pecuron device.
A Pecuron doesn't send any JMS custom header properties about his identity
and so far the identity must be defined as parameter for a dedicated Resource
Adapter / in-queue pair. Find below the in-queue definition for our example.
...
XPDinteg_SelfCheckoutInQ
jms/XPDinteg_SelfCheckoutInQ
The Resource Adapter definition looks like following.
...
com/ibm/integrator/flowtriggerevent/MessageForward/SelfCheckoutMessage/JMSAdapter
...
Finally there's the Flow definition as listed below.
Name="MessageForward_ReadResource"
ActivityName="XPDINTEG_MESSAGE_READ"
PropertyKey="DATA_REFERENCE"
/>
Name="MessageForward_MessageWrite"
ActivityName="XPDINTEG_MESSAGE_WRITE"
JndiConnectionFactoryKey="jms/XPDinteg_ConnectionFactory"
DestinationName="jms/XPDinteg_ResOutQ"
AddDefaultHeaders="TRUE"
Header1="ADD:ResourceType:SelfCheckoutMessage:STRING"
Header2="ADD:PecuronId:P1236:STRING"
/>
You should take care to ensure there is an exact match of the topic definition
com/ibm/integrator/flowtriggerevent/MessageForward/SelfCheckoutMessage/JMSAdapter
for the Resource Adapter definition (Resource Monitor acts as publisher)
and Flow definition (Application Control Service acts as subscriber and
starts the Flow).
Putting a test message into the queue
XPDinteg_SelfCheckoutInQwill
finally trigger the Flow that reads the message from this queue and puts
it into
XPDinteg_ResOutQ. It is necessary to generate JMS custom
header properties for further routing mechanisms at the Backbone Service
Bus. The parameters for the second Activity have the following meaning.
AddDefaultHeaders - adds the standard JMS custom header properties
that are required for further processing at central side
Header1 - adds a JMS custom property for ResourceType
Header2 - adds a JMS custom property for PecuronId (ID of the Pecuron
Device)
See the output in Lotus Expeditor integrator console window when the use
case was executed successfully below.
Console output UC003
Find below some excerpts from a PoT performed for JKHLE, including Pecuron
Device Application (PAPP) with micro broker JMS Client, Lotus Expeditor
integrator, WebSphere Message Broker (WMQ) and Pecuron Back Office Application
(PBOA). This one uses the use case UC003 for status information from Pecuron
to PBOA while it also implements a use case for messages from PBOA to Pecuron
that is not described here.
Operational considerations UC003
PBOA screen before receiving PAPP status message - the red dot means that
the Pecuron is not available for customer transactions
PBOA screen after receiving PAPP status message - the green dot means that
the Pecuron is ready for customer transactions
Table
of Contents |
Previous
|
Next