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


Chapter 2 Creating a Component : HTTP Virtual Router and Load Balancer

HTTP Virtual Router and Load Balancer
In a private cloud, when you run a BusinessWorks or TIBCO Administrator instance for 5.x component, you do not know in advance the address of the machine where it will run unless you set resource preferences in the rules.
For better interaction between BusinessWorks 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.
The HTTP virtual router is supported by BusinessWorks 6.x components also.
HTTP Load Balancer for BusinessWorks Component
The URL to access or invoke the BusinessWorks archive endpoint (a web service using SOAP over HTTP transport or an HTTP Receiver activity) uses the form:
http://{BrokerMachineName}:{BrokerPort}/{TIBCO_ADMIN_DOMAIN}/{BW-APPLICATION-PATH.NAME}/{BW_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 Enterprise Administrator component.
{BW-APPLICATION-PATH.NAME} - The deployment directory and name of the BusinessWorks application with folders and name delimited by periods. For example if the BusinessWorks application were named AppName and was deployed in the TIBCO Admin directory:   aaa/bbb/ccc/
then the {BW-APPLICATION-PATH.NAME} would be:   aaa.bbb.ccc.AppName
The {BW-APPLICATION-PATH.NAME} may be copied from the TIBCO Silver Fabric Administrator > Dashboard > Scaled Archives page.
{BW_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 runtime.
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.
Figure 38 The TIBCO ActiveMatrix BusinessWorks: HTTP Port Management page
For example:
http://MyBrokerMachine(IP)Name:8080/MyDomain/{BW-APPLICATION-PATH}/MyArchiveName.par/HTTPVariables/HTTP_Port

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