Kbase 21122: WebSpeed: How to Use WEB-CONTEXT:CONFIG-NAME To Get Service Name
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to Use WEB-CONTEXT:CONFIG-NAME To Get Service Name
GOAL:
How to use SpeedScript WEB-CONTEXT:CONFIG-NAME To Get Service Name?
GOAL:
What does the WEB-CONTEXT:CONFIG-NAME return?
FIX:
When you use the WEB-CONTEXT:CONFIG-NAME() and you've added a set of service names for the broker in the AppService Name List such as:
"wsbroker1,wsbroker2,wsbroker3", ..
You might try to capture the service name used in the URL for future use.
If you start the broker with "wsbroker1", access it from the URL with,
http://...../Wservice=wsbroker3,
and try to use
WEB-CONTEXT:CONFIG-NAME(),
confusion might result when it returns with "wsbroker1". Nevertheless documentation mentions that WEB-CONTEXT:CONFIG-NAME() should give the WebSpeed service name.
The WebSpeed service name is the actual broker name.
WEB-CONTEXT:CONFIG-NAME gets the value from the parameter -wtbname used at the agent startup, and that is the broker name (this parameter is set by the broker).
The appserviceNameList is used to specify a list of names that are going to be registered with the NameServer and associated with that specific broker.
If you want to get the name in the URL, you can use the WebSpeed variable AppURL (if the URL contains it) and manipulate the string that's returned.