![]() |
![]() |
||
|
This chapter consists of the following topics:
As with any TUXEDO server, you must update the SERVERS section of the UBBCONFIG file to establish a server group for the eLink Adapter for Vantive in the BEA TUXEDO configuration.
See the BEA TUXEDO Administrator's Guide for more information about the UBBCONFIG file. For more information about the UBBCONFIG file specific to servers, refer to the "Updating the SERVERS Section" of this document.
Note:
Lines beginning with an asterisk (*) indicate the beginning of a specification section. Each such line contains the name of the section immediately following the *. The asterisk is required when specifying a section name.
This section explains how to specify servers in the BEA TUXEDO configuration.
You define the ELINKVANO server in the SERVERS section of the TUXEDO UBBCONFIG file as follows:
To define this server, add the ELINKVANO information in the SERVER section of the UBBCONFIG file. The following parameters are required for defining the ELINKVANO server.
Defining the ELINKVANO Server
Updating the SERVERS Section of the UBBCONFIG File
Define the ELINKVANO Server
Listing 3-1
Syntax for ELINKVANO Server Definition in the UBBCONFIG File
*SERVERS
ELINKVANO
SRVGRP=.. SRVID=..
CLOPT = " -- -i unique_id -C configuration filename"
For more information about the SRVGRP, SRVID, and CLOPT parameter syntax and definitions, refer to the BEA TUXEDO Reference Manual.
" -- -i
unique_id"
"-C
configuration filename"
specifies the configuration file specifying the detailed adapter configuration information.
Listing 3-2 is a sample UBBCONFIG file. In this sample, the ELINKVANO server is defined in the SERVER section with the required CLOPT options specified.
Listing 3-2 Sample UBBCONFIG File
*RESOURCES
IPCKEY 123791
DOMAINID simpapp
MASTER simple
*MACHINES
DALNT6
LMID = simple
TUXDIR = "\tuxedo"
TUXCONFIG = "\myappdir\tuxconfig"
APPDIR = "\myappdir"
FIELDTBL = "sample.fml"
FIELDTBL32 = "sample.fml"
FLDTBLDIR = "\myappdir"
FLDTBLDIR32 = "\myappdir"
ULOGPFX = "\myappdir\ULOG"
# LD_LIBRARY_PATH=\vantive
# SHLIB_PATH=\vantive
PATH=\vantive
*GROUPS
eLINK
LMID=simple GRPNO=1
*SERVERS
DEFAULT:
CLOPT="-C"
ELINKVANO
SRVGRP=eLINK SRVID=10
REPLYQ=N
CLOPT="-- -i unique_id -C elinkvantive.cfg"
*SERVICES
*ROUTING
The eLink Adapter for Vantive retrieves configuration information from its own configuration file (elvan_env.cfg) located in the APPDIR directory. This configuration parameters file defines detailed configuration information required by the eLink Adapter for Vantive. The eLink Adapter for Vantive reads-in the adapter label section of the specified environment file.
Note: The configuration file must be specified in the CLOPT line of the UBBCONFIG file or the eLink Adapter for Vantive will generate an error and exit the startup.
If you are unsure of a parameters value, consult your Vantive System Administrator for the proper configuration file values.
The eLink Adapter for Vantive configuration file consists of the following sections.
The configuration file SERVER section defines the parameters needed to establish connections with the Vantive application, and to set any global flags (such as debug flags) within the server. The beginning of the SERVER section is denoted by a line containing the following text string "*SERVER".
Refer to the Vantive documentation for the specific format of the FUNCTION_NME parameter.
For each service that is advertised by the adapter, a SERVICE section must be specified in the configuration file that defines what the service does within the Vantive application. Each SERVICE section defines the operation and data that is to be manipulated within Vantive. The beginning of the SERVICE section is denoted by a line containing the following text string "*SERVICE".
Refer to the Vantive documentation for the specific format of the OBJECT_NAME parameter.
Refer to the Vantive documentation for the specific format of the FORM_NAME parameter.
If the form name is not mentioned for the given service then it is the service dealing with main business object and main form associated with it.
Refer to the Vantive documentation for the specific format of the INPFLD_LIST parameter.
Refer to the Vantive documentation for the specific format of the MANFLD_LIST parameter.
Refer to the Vantive documentation for the specific format of the OUTFLD_LIST parameter.
Refer to the Vantive documentation for the specific format of the KEYFLD_LIST parameter.
Refer to the Vantive documentation for the specific format of the KEYFLD_LIST parameter.
Listing 3-1 is a sample configuration file. The elvan_env.cfg file is the configuration file that the server reads.
Listing 3-3 Sample Environment Configuration File
*SERVER
NAME=SALES
VANTIVE_HOST=127.0.0.1
VANTIVE_PORT=1540
TRACE=Y
RESPONSE_BUFFER_SIZE=12000
LOGIN_NAME=vantest1
PASSWORD=vantest1
SERVICE_LIST=RdCustSales,NewCustSales,UpdCustSales,DelCustSales, NewSiteSales, UpdSiteSales, RdSiteSales, DelSiteSales, NewContSales, UpdContSales, RdContSales, DelContSales, NewIndSales, UpdIndSales, RdIndSales, DelIndSales, NewRegSales, UpdRegSales, RdRegSales, DelRegSales, NAddCustSales, UAddCustSales, RAddCustSales, DAddCustSales, NAddSiteSales, RAddSiteSales, DAddSiteSales, UAddSiteSales, NJorContSales, UJorContSales, RJorContSales, DJorContSales
*SERVICE
NAME=RdCustSales
OBJECT_NAME=CUSTOMER
OPERATION=Read
MANFLD_LIST=swName
OUTFLD_LIST=swName, swParentId|sw_Customer.swname, swStatus, swCreditRating, swMainPhoneCntry, swMainPhoneArea, swMainPhone, swMainFaxCntry, swMainFaxArea, swMainFax, swType, swDuns, swUrl, swOwnership, swRevenue, swRegionId|sw_Region.swName, swGeoCode, swLocType, swEmpTotal, swIndustryId|SW_INDUSTRY.swName, swDefaultReplyVia, swTpm, swCarrier, swNote
*SERVICE
NAME=NewCustSales
OBJECT_NAME=CUSTOMER
OPERATION=New
INPFLD_LIST=swParentId|SW_CUSTOMER.swName, swStatus, swCreditRating, swMainPhoneCntry, swMainFaxCntry, swType, swDuns, swUrl, swOwnership, swRevenue, swRegionId|SW_REGION.swName, swGeoCode, swLocType, swEmpTotal, swIndustryId|SW_INDUSTRY.swName, swDefaultReplyVia, swTpm, swCarrier, swNote
MANFLD_LIST=swName, swMainPhoneArea, swMainPhone, swMainFaxArea ,swMainFax
KEYFLD_LIST=swParentId, swRegionId, swIndustryId
swParentId=CUSTOMER, swCustomerId
swRegionId=REGION
swIndustryId=INDUSTRY
OUTFLD_LIST=swCustomerId
*SERVICE
NAME=UpdCustSales
OBJECT_NAME=CUSTOMER
FORM_NAME=
OPERATION=Update
INPFLD_LIST= swParentId|SW_CUSTOMER.swName, swStatus, swMainPhoneCntry, swType, swUrl, swRegionId|sw_Region.swName, swIndustryId|SW_INDUSTRY.swName, swDefaultReplyVia, swTpm, swCarrier, swNote, swMainPhoneArea, swMainPhone, swMainFaxArea ,swMainFax
MANFLD_LIST=swName
OUTFLD_LIST=swCustomerId
KEYFLD_LIST=swParentId, swRegionId, swIndustryId
swParentId=CUSTOMER, swCustomerId
swRegionId=REGION
swIndustryId=INDUSTRY
*SERVICE
NAME=DelCustSales
OBJECT_NAME=CUSTOMER
FORM_NAME=
OPERATION=Delete
INPFLD_LIST=
MANFLD_LIST=swName
OUTFLD_LIST=swName
*SERVICE
NAME=NewSiteSales
OBJECT_NAME=SITE
PRIMARY_KEY=
FORM_NAME=
OPERATION=New
INPFLD_LIST=swLanguage, swRegionId|sw_Region.swName, swRepairDepotSite, swOfficePhoneCntry, swOfficePhoneArea, swFaxCntry, swFaxArea, swFax, swOfficeCode
MANFLD_LIST=swSiteName, swCustomerId|sw_customer.swName
KEYFLD_LIST=swCustomerId, swRegionId
swCustomerId=CUSTOMER
swRegionId=REGION
OUTFLD_LIST=swSiteId
*SERVICE
NAME=UpdSiteSales
OBJECT_NAME=SITE
PRIMARY_KEY=
FORM_NAME=
OPERATION=Update
INPFLD_LIST=swLanguage, swRegionId|sw_Region.swName, swRepairDepotSite, swOfficePhoneCntry, swOfficePhoneArea, swFaxCntry, swFaxArea, swFax, swOfficeCode
MANFLD_LIST=swSiteName
KEYFLD_LIST=swRegionId
swRegionId=REGION
OUTFLD_LIST=swSiteId
*SERVICE
NAME=RdSiteSales
OBJECT_NAME=SITE
PRIMARY_KEY=
FORM_NAME=
OPERATION=Read
INPFLD_LIST=
OUTFLD_LIST=swLanguage, swRegionId|sw_Region.swName, swRepairDepotSite, swOfficePhoneCntry, swOfficePhoneArea, swFaxCntry, swFaxArea, swFax, swOfficeCode
MANFLD_LIST=swSiteName
*SERVICE
NAME=DelSiteSales
OBJECT_NAME=SITE
PRIMARY_KEY=
FORM_NAME=
OPERATION=Delete
INPFLD_LIST=
OUTFLD_LIST=swSiteName
MANFLD_LIST=swSiteName
*SERVICE
NAME=NewContSales
OBJECT_NAME=OUTSIDECONTACT
PRIMARY_KEY=
FORM_NAME=
OPERATION=New
INPFLD_LIST=swTitle, swCustomerId|sw_Customer.swName, swSiteId|sw_Site.swSiteName, swRegionId|sw_Region.swName, swDepartment, swJobTitle, swType, swSalutation, swEmailType, swLo
Each unique business-level function that can be invoked by the eLink Adapter for Vantive is advertised as a TUXEDO service. To invoke a service, a calling application prepares an FML32 request buffer specifying the input values that are to be passed to Vantive. The calling application then invokes the corresponding TUXEDO service, passing the FML32 request buffer.
The eLink Adapter for Vantive has a generic EL_VANTIVE_IN service that processes all the service requests. When invoked, the service code determines what service name is used to invoke it. The service code then calls a function that processes the requests. This function takes the service name and FML32 request buffer as input parameters, and returns the FML32 response buffer and error information as ouput parameters. From the service name, the function determines the Vantive functionality to invoke. The function that processes the FML32 request buffer, invokes the Vantive functionality, and then returns the response parameters in an FML32 buffer. If any errors ocur, then the function returns error information.
The service code processes the response from the function. If the Vantive functionality was invoked successfully, then it will return TPSUCCESS with the tpurcode
set to 0. If the invocation failed then the service code returns the corect error indication.
The eLink Adapter for Vantive uses only FML32 Field names, not Field IDs, when processing the request and response buffers. The Field names must be defined in the TUXEDO FML Field Table file. This allows the actual Field IDs to be customer-defined.