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


Chapter 2 Creating an Enabler for Generic Adapter Component : HTTP Virtual Router and Load Balancer

HTTP Virtual Router and Load Balancer
In a private cloud, when you run an Adapter or TIBCO Administrator instance for 5.x component, you do not know in advance the address of the machine where it runs unless you set resource preferences in the rules.
For better interaction between Adapter activities, an HTTP URL (a web service using SOAP over HTTP transport or an HTTP Receiver activity) is required. The HTTP Load Balancer, an HTTP redirector, fulfills this requirement.
HTTP Load Balancer for Adapter Component
The URL to access or invoke the Adapter archive endpoint (a web service using SOAP over HTTP transport or an HTTP Receiver activity) uses the form:
http://{BrokerMachineName}:{BrokerPort}/{TIBCO_ADMIN_DOMAIN}/{GA-APPLICATION-PATH.NAME}/{GA_HttpPortName}
Where the URL is composed of the following parts:
{BrokerMachineName}: The machine name or IP Address where you installed the virtual router. The default is the broker machine.
{BrokerPort}: typically this is the port of the Silver® Fabric Administrator GUI. The default value is 8080.
{TIBCO_ADMIN_DOMAIN}: the value of the domain name you entered when you configured TIBCO Administrator component.
{GA-APPLICATION-PATH.NAME}: the deployment directory and name of the Adapter application with folders and name delimited by periods. For example, if the Adapter application were named AppName and was deployed in the TIBCO Admin directory aaa/bbb/ccc/,
the {GA-APPLICATION-PATH.NAME} would be: aaa.bbb.ccc.AppName
The {GA-APPLICATION-PATH.NAME} may be copied from the TIBCO Silver Fabric Administrator > Dashboard > Scaled Archives page.
{GA_HttpPortName} : This global variable, endpoint URI, is defined at archive design-time as the HTTP port created to accept requests. Using TIBCO Designer create the variable (the name is arbitrary) in the global variable group and it should be set as modifiable at the service level to allow the value to be changed at run time.
The base port value for HTTP request activity and SOAP/HTTP Web service activity may be changed at the component level as was shown previously.
For example:
http://MyBrokerMachine(IP)Name:8080/MyDomain/{SFGA-APPLICATION-PATH}/MyArchiveName.par/HTTPVariables/HTTP_Port

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