Consultor Eletrônico



Kbase P30991: Using Alias with Webspeed
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/02/2005
Status: Unverified

SYMPTOM(s):

Using Database Alias with Webspeed

Database <db> not connected (1006)

CAUSE:

A web application can result on more than one request per submit. By Default a Webspeed agent is stateless, this means that Web objects are run and destroyed within a single web request. The WebSpeed Agent which services them retains no context for the next time it runs the object. Define the Alias only at the requested procedure, i.e. POST method, the other requests might be serviced by other WebSpeed Agent, which does not know about the alias, resulting on error 1006.

FIX:

Define the alias before calling the Webspeed dispatcher procedure to make sure that all agents have the alias.

Create a procedure like the following code
/* alias.p */
CREATE ALIAS myalias FOR DATABASE sports2000.
RUN web/objects/web-disp.p.
/* end of alias.p */

Then, change you configuration of srvrStartupParam from "-p web\objects\web-disp.p -weblogerror" to "-p alias.p -weblogerror" in you ubroker.properties file or in the Agent Startup paramter.