Sending Data to a JMS Queue
The following example demonstrates how to send data to a JMS queue through the Platform Server command line interface.
Adding a JMS Server
Adding a Transfer Definition
Field | Description |
---|---|
Client File Name | Defines the name for the client file. |
Server File Name | Defines the name for the queue that you want to write.
Set this parameter to MFT.Queue1. |
Directory Transfer | Defines whether the transfer is a directory transfer.
Select No. |
Description | Defines a short description for the transfer that you add. |
Authorized User Id | Defines the ID of the authorized user. |
Server Name | Defines the name for the server. |
Transfer Direction | Defines the direction of the transfer:
Upload to Server or
Download to Client transfer.
Select Upload to Server. |
Client Protocols Allowed | Defines whether all client protocols are supported.
Select ALL. |
Department | Defines the department to which this transfer is assigned.
If you have one, set it here; if not , leave it blank. |
Virtual Alias | Defines the alias that the client uses for transfers.
For this example, JMSPlatform is used. |
Field | Description |
---|---|
Data Type | Defines which data type the system uses to write to JMS.
Select Text. This defines the system to write text data to JMS. Queues used by the BW interface require text data. Binary defines the system to write byte data to JMS. |
Delimiter | Defines how the system handles record delimiter. |
Field | Description |
---|---|
Input Selector | Defines the selector that is used to filter JMS messages when reading data from a JMS queue . |
Output JMSType Property | Defines the JMSType output property that is written when the file is sent to the JMS queue.
This parameter is set to JMSUpload. |
Max Message Size | Defines a maximum message size.
Valid values for this parameter are from 1K - 999K and 1M - 10M. The default value is 1M. When a message exceeds this size, it will be broken up into multiple messages. |
Write EOF Message |
Defines whether MFT will write an empty JMS message at End Of File. This message will indicate that the entire file has been written and will not contain any message data. Supported values are: Yes - Write an empty message indicating end of file. JMS header property "LastMessage" will be "true" for the empty message and "false" for messages that contain data. No - Do not write an empty message indicating end of file |
Click Add after you finish the configurations.
Sending Data from Client to the JMS Queue
On a command line, navigate to the Platform Server command line interface. The following command uses the settings in the previous steps to send the file to JMS:
ftmscmd /send /file /destination:10.97.142.154 /port=46464 /remoteuserid=jmsuser / remotepassword=pwd c:\outgoing\testfile.txt JMSUP/MFT.Queue1