Procedure
-
Double-click tRowGenerator to open its
editor.
- Click the plus button to add three rows into the schema table.
- In the Column column, type in a new name for each row to rename it. Here, we type in ID, Name and Address.
- In the Type column, select Integer for the ID row from the drop-down list and leave the other rows as String.
-
In the Functions column, select
random
for the ID row,getFirstName
for the Name row andgetUsCity
for the Address row. -
In the Number of Rows for RowGenerator
field on the right end of the toolbar, type in 12 to
limit the number of rows to be generated. Then, Click Ok to validate this editing.
Note:
In real case, you may use an input component to load the data of your interest, instead of the tRowGenerator component.
-
Double-click the tMicrosoftMQOutput
component to open its Component
view.
- In the Host field, type in the host address. In this example, it is localhost.
- In the Queue field, type in the queue name you want to write message in. In this example, name it AddressQueue.
- In Message column (String Type ) field, select Address from the drop-down list to determine the message body to be written.