Using a text editor, edit the following WebLogic Server 10 instance startup script, depending on your platform:
Solaris and Linux systems: domain-directory/bin/startWebLogic.sh
Windows systems: domain-directory\bin\startWebLogic.cmd
domain-directory represents the domain name associated with the WebLogic Server 10 instance.
Add the path of the agent environment variable script to the WebLogic Server 10 startup script:
Solaris and Linux systems: After the line, . ${DOMAIN_HOME}/bin/setDomainEnv.sh $*, add the path:
. domain-directory/setAgentEnv_${SERVER_NAME}.sh |
For example, for a domain directory named base_domain:
. /usr/local/bea/user_projects/domains/base_domain/setAgentEnv_${SERVER_NAME}.sh |
Therefore, the startup script would then contain these two lines:
. ${DOMAIN_HOME}/bin/setDomainEnv.sh $* . /usr/local/bea/user_projects/domains/base_domain/setAgentEnv_${SERVER_NAME}.sh |
Windows systems: After the line, call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*, add the path:
call "domain-directory\setAgentEnv_%SERVER_NAME%.cmd"
For example, for a domain directory named base_domain:
call "C:\bea\user_projects\domains\base_domain\setAgentEnv_%SERVER_NAME%.cmd"
Therefore, the startup script would then contain these two lines:
call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %* call "C:\bea\user_projects\domains\base_domain\setAgentEnv_%SERVER_NAME%.cmd"
The ${SERVER_NAME} or %SERVER_NAME% variable represents the WebLogic Server 10 instance and is dynamically replaced when the script is executed.
Restart the WebLogic Server 10 instance.