Professional Documents
Culture Documents
401DataPowerB2BMQFTEl.ppt
Page 1 of 23
MQFTE Integration
401DataPowerB2BMQFTEl.ppt
Page 2 of 23
MQFTE Integration
Partner
Appliance
Agent
Network
Agent
MQ queue
This slide shows the flow of using an MQFTE URL opener to send messages to the
MQFTE network. The DataPower service puts the message on a shared queue that the
MQFTE destination agent monitors. After all pieces of the message are sent to the shared
queue, the MQFTE source agent will transfer the data to a destination agent and the
message payload is written to a file.
401DataPowerB2BMQFTEl.ppt
Page 3 of 23
MQFTE Integration
...
...
...
...
If the payload of the received message is too large, the message payload is segmented into
smaller pieces before forwarded to the shared queue.
The maximum message size used is decided by these factors:
- The configuration of the maximum message size for the QM object in DP
- The message size configured for the queue
- The message size configured for the channel
When transferring a large file, the message payload is segmented into smaller pieces
during the transfer. From the perspective of MQFTE, these segments belong to the same
message group and is reassembled into one file after the transfer.
401DataPowerB2BMQFTEl.ppt
Page 4 of 23
MQFTE Integration
This slide shows how to configure an MQFTE URL as a destination of B2B partner profile.
401DataPowerB2BMQFTEl.ppt
Page 5 of 23
MQFTE Integration
Like MQ URL opener, MQFTE URL opener has dynamic and static URLs.
The URL location part stands for Queue Manager name or its IP-port combination.
For example:
- dpmqfte://QM_Demo/?RequestQueue=Q_in&DestAgent=Kai&DestQM=dummyQM&DestFile=dummyPath
- mqfte://172.16.130.75:4444/?RequestQueue=Q_in&DestAgent=Kai&DestQM=dummyQM&DestFile=dummyPath
Available URL Parameters:
Required
DestQM - The destination queue manager to which the source agent sends a message.
DestFile - The name of the file where the destination agent stores a received message.
Optional
SenderID - The business ID of the sender, for example, the external partner.
ReceiverID - The business ID of the receiver, for example, the internal partner.
Configuring an MQFTE URL is similar to configuring an MQ URL. You need to provide the
queue manager information where the shared queue is located and the URL parameters
as well. Alternatively, you can provide the IP address and port to setup the connection
dynamically.
Here we list the required MQFTE URL parameters. The DestAgent (destination agent) is
the agent that will ultimately receive the file, the DestQM (destination queue manager) is
the queue manager to which the source agent should send the message, and the DestFile
(destination file) is the name of the file where the destination agent stores a received
message.
The MQFTE URL opener has some optional parameters. The SenderID is the business ID
of the sender, and the RecevierID is the business ID of the receiver. The ContentType
identifies the type of the message payload.
You can enable the unique file name feature for an MQFTE destination so that old files are
not overwritten by new files with the same name. This feature is only available on B2B
appliances.
401DataPowerB2BMQFTEl.ppt
Page 6 of 23
[MQFTE Integration
Transactionality Support
Like MQ, transactionality is supported for MQFTE URLs. Enable this feature to prevent
the transfer of partial message segments when an error occurs.
Here is the flow: The trading partner sends data to the DataPower appliance, which writes
data to an MQ queue as one or more messages in a group.
When an error is detected during transaction processing, the residual messages in the
shared queue is removed.
401DataPowerB2BMQFTEl.ppt
Page 7 of 23
MQFTE Integration
Now let us move on to the next topic the MQFTE front-side protocol handler.
401DataPowerB2BMQFTEl.ppt
Page 8 of 23
MQFTE Integration
File Transfer
Sender
Source
Agent
MQFTE
Network
Appliance
Message
Partner
Destination
Agent
MQ queue
Message
1. The MQFTE source agent receives the transfer and sends the file to the destination
agent which shares queues with the DataPower appliance.
2. The destination agent places file data as one or more messages in a group.
3. The MQFTE front-side handler consumes messages from the queue, reassembles
the message if there are more than one segments, and sends the data to the
external partner
This slide shows the flow of receiving a transaction request from the trading partner using
an MQFTE front-side handler.
The trading partner creates a transfer and the document is transferred to the shared
queue.
MQFTE front-side handlers on the DataPower appliance poll the message pieces from the
shared queue, reassembled them, and then starts processing the transaction.
401DataPowerB2BMQFTEl.ppt
Page 9 of 23
MQFTE Integration
The Queue manager that host the shared queue where you retrieve
the message segments.
10
401DataPowerB2BMQFTEl.ppt
Page 10 of 23
MQFTE Integration
The MQFTE Source Agent can optionally configure these metadata to integrate with XB60
When set, B2B Gateway uses this information to match the right partner profile setting :
DPMQFTESenderID: The business ID of the internal partner
Example:
/opt/IBM/WMQFTE/bin/fteCreateTransfer
-md DPMQFTESenderId=companyA,
DPMQFTEReceiverId=companyB,
DPMQFTEContentType=application/edi
-qs 1M /home/kai/doc/doc.edi
11
MQFTE administrators can explicitly specify B2B information like the name of the trading
partner and the document content type in the transfer by using the -md option when
issuing the fteCreateTransfer command.
In this example, the administrator explicitly sets the sender ID to be company A, the
receiver ID to be company B, and the content type to be edi.
401DataPowerB2BMQFTEl.ppt
Page 11 of 23
MQFTE Integration
Transactionality Support
Logical flow of data
DataPower portion
of transfer
File Transfer
Sender
4 (error)
Source
Agent
MQFTE
Network
Partner
Destination
Agent
1
Appliance
Get Queue
3
Backout Queue
1. The MQFTE source agent receives the transfer and sends the file to the destination agent which
shares queues with the DataPower appliance.
2. The destination agent places file data as one or more messages in a group.
3. The MQFTE front-side handler consumes messages from the queue
4. An error occurs in the transaction process and MQFTE front-side handler rolls the transfer back.
Go back to step 1 to retry the transfer.
5. If the number of retries reaches the backout threshold, the MQFTE front-side handler sends the
transfer to the backout queue.
When an error occurs during transaction processing on XB60 and transactionality is disabled, the B2B
Gateway cleans up the remaining message segments on the shared queue to avoid orphan messages
12
401DataPowerB2BMQFTEl.ppt
Page 12 of 23
MQFTE Integration
13
Now let us move on to the next topic the MQFTE integration ID.
401DataPowerB2BMQFTEl.ppt
Page 13 of 23
MQFTE Integration
The new column Integration ID stores the integration ID that correlates a B2B Transaction
with a back-end transaction.
For MQFTE integration, the integration ID maps to the transfer ID of MQFTE network.
For inbound transactions, the integration-ID is the Message ID of the first message that
is sent to the shared queue
For outbound transactions, the integration-ID is the Message ID of the first message that
is received from the shared queue.
14
401DataPowerB2BMQFTEl.ppt
Page 14 of 23
MQFTE Integration
15
In some case the administrator might want to customize the integration ID. An integration
ID can be specified by setting the mqfte-integ-id service variable. When setting an
integration ID, make sure the value is presented in hex format. If not specified or not in
hex format, the integration ID is generated by the MQ queue manager where the shared
queue is located.
401DataPowerB2BMQFTEl.ppt
Page 15 of 23
MQFTE Integration
16
Now let us go to the last topic the display MQFTE metadata. This feature is only
available on only B2B appliances
401DataPowerB2BMQFTEl.ppt
Page 16 of 23
MQFTE Integration
For each MQFTE-related transaction, the transfer-related metadata is stored in the MQFTE
logger database (if installed). The installation of MQFTE logger database is optional.
When you click the integration-id link, the DataPower appliance retrieves the transaction
metadata from the logger database and displays the result on a pop-up window
17
When a B2B appliance sends a message to the MQFTE network, a new transfer is
initiated and the transfer results are recorded in the MQFTE database. In some cases, it is
helpful to take a quick look of the transfer results in the DataPower B2B transaction
viewer. This can be done by clicking the integration-id link in the transaction viewer. When
clicked, the appliance retrieves the the transaction metadata from the MQFTE logger
database and display the results.
401DataPowerB2BMQFTEl.ppt
Page 17 of 23
MQFTE Integration
Inbound GW
Agent
Appliance
Network
Back-end
System
Agent
MQ queue
4
18
MQFTE Logger
This chart shows the flow of how DataPower retrieves transfer metadata from the MQFTE
logger database.
401DataPowerB2BMQFTEl.ppt
Page 18 of 23
MQFTE Integration
19
Because the metadata is retrieved through ODBC, an SQL data source configuration is
required for the B2B gateway. This slide shows how to configure this SQL data source.
Note that only one SQL data source is allowed with one B2B gateway.
401DataPowerB2BMQFTEl.ppt
Page 19 of 23
MQFTE Integration
20
For B2B appliances, if the MQFTE logger is enabled and the SQL data source for the B2B
gateway is configured, the transfer metadata of MQFTE related transactions can be
displayed by clicking on the MQFTE integration ID in the B2B transaction viewer as shown
in the previous chart.
401DataPowerB2BMQFTEl.ppt
Page 20 of 23
MQFTE Integration
Summary
21
To summarize, this presentation introduces how to use an MQFTE URL opener and
MQFTE front-side protocol handler, which are available for both Integration (XI) and B2B
(XB) appliances.
In addition, the usage of the integration ID and how to display MQFTE transfer metadata is
also illustrated. Each MQFTE-related transaction is associated with a specific MQFTE
integration ID, which can be used to retrieve and display transfer metadata on XB
appliances.
401DataPowerB2BMQFTEl.ppt
Page 21 of 23
Feedback
22
You can help improve the quality of IBM Education Assistant content by providing
feedback.
401DataPowerB2BMQFTEl.ppt
Page 22 of 23
IBM, the IBM logo, ibm.com, DataPower, and WebSphere are trademarks or registered trademarks of International Business Machines Corp.,
registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of other
IBM trademarks is available on the web at "Copyright and trademark information" at http://www.ibm.com/legal/copytrade.shtml
THE INFORMATION CONTAINED IN THIS PRESENTATION IS PROVIDED FOR INFORMATIONAL PURPOSES ONLY.
THE INFORMATION CONTAINED IN THIS PRESENTATION IS PROVIDED FOR INFORMATIONAL PURPOSES ONLY. WHILE EFFORTS WERE
MADE TO VERIFY THE COMPLETENESS AND ACCURACY OF THE INFORMATION CONTAINED IN THIS PRESENTATION, IT IS PROVIDED
"AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN ADDITION, THIS INFORMATION IS BASED ON IBMS CURRENT
PRODUCT PLANS AND STRATEGY, WHICH ARE SUBJECT TO CHANGE BY IBM WITHOUT NOTICE. IBM SHALL NOT BE RESPONSIBLE FOR
ANY DAMAGES ARISING OUT OF THE USE OF, OR OTHERWISE RELATED TO, THIS PRESENTATION OR ANY OTHER DOCUMENTATION.
NOTHING CONTAINED IN THIS PRESENTATION IS INTENDED TO, NOR SHALL HAVE THE EFFECT OF, CREATING ANY WARRANTIES OR
REPRESENTATIONS FROM IBM (OR ITS SUPPLIERS OR LICENSORS), OR ALTERING THE TERMS AND CONDITIONS OF ANY AGREEMENT
OR LICENSE GOVERNING THE USE OF IBM PRODUCTS OR SOFTWARE.
Copyright International Business Machines Corporation 2011. All rights reserved.
23
401DataPowerB2BMQFTEl.ppt
Page 23 of 23