Using a text editor, edit the following WebLogic Portal 10 startup script, depending on your platform:
Solaris and Linux systems: DeployContainer-base/wlserver_10.0/samples/domains/portal/bin/startWeblogic.sh
Windows systems: DeployContainer-base\wlserver_10.0\samples\domains\portal\bin\startWeblogic.cmd
DeployContainer-base represents the directory where the WebLogic Portal 10 instance is installed.
Add the path of the agent environment variable script to the WebLogic Portal 10 startup script:
Solaris and Linux systems: After the line, . ${DOMAIN_HOME}/bin/setDomainEnv.sh $*, add:
. DeployContainer-base/samples/domains/portal/setAgentEnv_${SERVER_NAME}.sh |
Therefore, the startup script would then contain these two lines:
. ${DOMAIN_HOME}/bin/setDomainEnv.sh $* . DeployContainer-base/samples/domains/portal/setAgentEnv_${SERVER_NAME}.sh |
Windows systems: After the line, call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*, add:
call DeployContainer-base\wlserver_10.0\samples\domains\portal\setAgentEnv_%SERVER_NAME%.cmd
Therefore, the startup script would then contain these two lines:
call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %* call DeployContainer-base\wlserver_10.0\samples\domains\portal\setAgentEnv_%SERVER_NAME%.cmd
The ${SERVER_NAME} or %SERVER_NAME% variable represents the WebLogic Portal 10 instance that is dynamically replaced.
Restart the WebLogic Portal 10 instance.