Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 10 Deploying, Starting and Monitoring an Adapter : Modifying the Adapter Service and Building the Archive

Modifying the Adapter Service and Building the Archive
Whenever you wish to deploy a project, you must generate an enterprise archive file for it. In this section, you will build an enterprise archive file. You will also make two changes required for running this particular adapter service.
Modifying the Adapter Service
The delimitedReader example parses an input file and sends its contents in a series of TIBCO Rendezvous messages, and then stops. It uses a variable for the file name.
To successfully run and monitor the adapter from TIBCO Administrator, you must make the variable settable from TIBCO Administrator. It is also useful to make the service continuous. Follow the steps below:
1.
With your project open, expand the Teak_TafRepoDefault folder.
2.
Select delimitedReader in the project panel. Open it by clicking the plus (+) and open Adapter Services, and then select the Publication Service folder.
3.
Select the Processing tab and notice that the value of the Working Directory is a variable.
Figure 52 Modifying the Adapter Service
4.
Click the Global Variables tab to the left of the project panel to display the Global Variables pane, and then select the icon at the top.
Figure 53 Global Variables Tab
5.
In the Global Variables editor, click the icon to add a string variable. Triple-click in the Name field and type in the variable name (TIBCO_ADFILES_HOME_ESC). Select the Deployment and Service checkboxes, and then click OK.
Selecting those two checkboxes means that you can:
This would be useful, for example, if you had two publication services that used files from different directories.
Building the Archive
To build the enterprise archive file, follow these steps:
1.
With the top-level (project) resource selected in the project tree, select the General palette in the palette panel and drag an Enterprise Archive resource into the design panel.
2.
Figure 54 Building the Archive
3.
In the project panel, select the AdFiles_delimitedReader enterprise archive. In the palette panel, select an Adapter Archive (from the Adapter Resources palette) and drag into the design panel.
4.
In the Configuration panel, click the icon next to the Adapter field and select the delimitedReader resource from the pop-up dialog, and then click OK.
Figure 55 Select a Resource
5.
Click Apply.
6.
Select the (top-level) AdFiles_delimitedReader enterprise archive in the project panel, click the Build Archive button in the bottom left corner of the configuration panel, and click Yes to save the project. A dialog appears indicating success.
7.
Click Project > Save and then click Project > Exit.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved