How to: |
After you have successfully configured and published a process flow using iWay Designer, you must configure a channel using the iWay Service Manager Administration Console to process the incoming data and route this data to the process flow.
The following hierarchical list shows the channel components that are used in this tutorial along with their naming conventions:
File Listener (xml2table_fl)
Process Flow (xml2table)
To configure a File listener using the iWay Service Manager Administration Console:
The main page of the iWay Service Manager Administration Console opens.
The Listeners pane opens, as shown in the following image.
The table that is provided lists existing listeners and a short description for each.
The Listener Type pane opens.
The configuration parameters pane for the File listener opens.
Parameter |
Value |
---|---|
Input Path |
C:\xml2tbl\in |
Destination |
C:\xml2tbl\out\emp_#.xml |
Suffix In Filter |
xml |
The Name and Description pane opens.
The new File listener (xml2table_fl) is added to the list in the Listeners pane.
You are now ready to define an inlet and associate it with the new File listener (xml2table_fl).
To define an inlet for your channel:
The Inlets pane opens, as shown in the following image.
The table that is provided lists each inlet that is defined with a brief description.
The New Inlet Definition pane opens.
The Construct Inlet pane opens.
The table that is provided is used to list the components that are currently registered with the inlet.
The Select component type pane opens.
The Select a listener definition pane opens, as shown in the following image.
You are returned to the Construct Inlet pane, which now includes the File listener (xml2table_fl) you registered with your inlet (xml2table_in).
If you return to the main Inlets pane, you will notice that the new inlet you just defined (xml2table_in) has been added to the list, as shown in the following image.
You are now ready to define a route and associate it with the process flow (xml2table_rt) that you created earlier and published to the iWay Registry using iWay Designer.
To define a route for your channel:
The Routes pane opens, as shown in the following image.
The table that is provided lists each route that is defined with a brief description.
The New Route Definition pane opens.
The Construct Route pane opens.
The table that is provided is used to list the components that are currently registered with the route.
The Select component type pane opens.
The Select a process definition pane opens, as shown in the following image.
You are returned to the Construct Route pane, which now includes the process flow (xml2table) you registered with your route (xml2table_rt).
If you return to the main Routes pane, you will notice that the new route you just defined (xml2table_rt)) has been added to the list, as shown in the following image.
You are now ready to construct your channel using the iWay components (inlet and route) that you have defined.
After you have defined the inlet (xml2table_in) and route (xml2table_rt), you can combine these components and construct a channel using the iWay Service Manager Administration Console. Every channel is required to have an inlet, a route, and an outlet.
In this example, a predefined default outlet will be used and associated with the new channel.
The Channels pane opens, as shown in the following image.
The table that is provided lists each channel that is defined with a brief description.
The New Channel Definition pane opens.
The Construct Channel pane opens.
The table that is provided is used to list the components that are currently registered with the channel.
The Select component type pane opens.
The select an inlet definition pane opens.
You are returned to the Construct Channel pane, which now includes the inlet (xml2table_in) you defined earlier.
You are now ready to add a route to the channel.
The Select component type pane opens.
Notice that only the Route and Outlet component types are listed, since you have already added an inlet to the channel.
The select one or more route definitions pane opens.
You are returned to the Construct Channel pane, which now includes the inlet (xml2table_in) and route (xml2table_rt) you defined earlier.
You are now ready to add an outlet to the channel.
The Select component type pane opens.
The select one or more outlet definitions pane opens.
You are returned to the Construct Channel pane, which now includes the inlet (xml2table_in), route (xml2table_rt), and outlet (default.outlet).
If you return to the main channels pane, you will notice that the channel you just constructed (xml2table_ch) has been added to the list, as shown in the following image.
After you have designed your channel, you are ready to build and deploy the channel into a run-time environment.
To build and deploy your channel:
The Channels pane opens, as shown in the following image.
The build result pane for the channel (xml2table_ch) opens.
The Deployments pane opens, showing links to Channels, Services, Metrics, and Web Services, in the left pane. By default, Channels is selected and the Channel Management pane is displayed, as shown in the following image.
The Available Channels pane opens.
You are returned to the Channel Management pane. Notice that xml2table_ch is now included in the list of deployed channels.
Note: Once a channel is deployed, you must also start it. A deployed channel is not started automatically. Notice the red X in the Status column for xml2table_ch.
A green checkmark now displays in the Status column, indicating that xml2table_ch is started.
You can now test your new channel (xml2table_ch) to ensure that it is running properly.
To test your channel:
C:\xml2tbl
C:\xml2tbl\in
To view a copy of the EmpData.xml sample XML document, see Employee XML Document (EmpData.xml).
Check to see that a new record is listed in the database table.
iWay Software |