348 IBM WebSphere Host Publisher Version 3.5
5. The Middle in Chain Integration Object is invoked using the same connection.
The order of execution is checked.
6. The Last in Chain Integration Object is invoked using the same connection.
The order of execution is checked and the Disconnect macro runs after this
object.
12.1.1 First Integration Object
To build the first Integration Object in the object chain, follow these steps:
1. Use the wizard within the Host Access application to define a connection as
you normally would. See Chapter 5, “Connection management” on page 117
for information about defining connections.
2. Select Create a New Pool in the Host Configuration panel.
3. Record your Connect macro and your Data macro. See Chapter 7, “Host
Integration Objects” on page 199 for information about recording macros.
4. You will probably not end your data loop macro at the same point where you
began (so that another Integration Object can pick up where you've stopped).
Navigate to the desired ending point for the data loop macro, and click Stop
Recording on the toolbar.
5. Navigate back to the point where you can disconnect from the host.
6. Highlight the Disconnect macro node in the macro tree, and click Record.
7. Record your Disconnect macro.
8. Before you start building the Integration Object, select Options -> Configure
Object Chaining. In the window that appears, specify a stop state label for
this Integration Object and specify also that this object should be first. Host
Publisher uses start and stop state labels to identify the Integration Objects
that precede or follow this one. For example, if this Integration Object has a
stop state label of
connected, only Integration Objects that have connected
with a start state label can follow this Integration Object in a chain.
9. Save the Integration Object.
12.1.2 Middle Integration Object
To record a middle Integration Object in the chain, follow these steps:
1. Use the wizard within the Host Access application to create another
Integration Object. When you define the connection, click Share an existing
connection pool and select the configuration you used for the first
Integration Object. All Integration Objects in the same object chain must use
the same connection configuration.