0% found this document useful (0 votes)
152 views4 pages

Start Web Logic

1) The document is a Windows batch script that starts a WebLogic server instance and PointBase database. 2) It sets environment variables and classpaths needed to start the applications and performs IP configuration. 3) The script then starts PointBase, sets further options, and uses Java to start WebLogic, trapping any errors.

Uploaded by

ganesanmani1985
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
152 views4 pages

Start Web Logic

1) The document is a Windows batch script that starts a WebLogic server instance and PointBase database. 2) It sets environment variables and classpaths needed to start the applications and performs IP configuration. 3) The script then starts PointBase, sets further options, and uses Java to start WebLogic, trapping any errors.

Uploaded by

ganesanmani1985
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

@ECHO OFF

@REM WARNING: This file is created by the Configuration Wizard.


@REM Any changes to this script may be lost when adding extensions to this confi
guration.
SETLOCAL
@REM --- Start Functions --GOTO :ENDFUNCTIONS
:stopAll
@REM We separate the stop commands into a function so we are able to use
the trap command in Unix (calling a function) to stop these services
if NOT "X%ALREADY_STOPPED%"=="X" (
GOTO :EOF
)
@REM STOP POINTBASE (only if we started it)
if "%POINTBASE_FLAG%"=="true" (
echo Stopping PointBase server...
call "%WL_HOME%\common\bin\stopPointBase.cmd" -port=%POINTBASE_P
ORT% -name=%POINTBASE_DBNAME% >"%DOMAIN_HOME%\pointbaseShutdown.log" 2>&1
echo PointBase server stopped.
)
set ALREADY_STOPPED=true
@REM Restore IP configuration the node manager starts IP Migration
if NOT "%SERVER_IP%"=="" (
call "%WL_HOME%\common\bin\wlsifconfig.cmd" -removeif "%IFNAME%"
"%SERVER_IP%"
)
GOTO :EOF
:ENDFUNCTIONS
@REM --- End Functions --@REM *************************************************************************
@REM This script is used to start WebLogic Server for this domain.
@REM
@REM To create your own start script for your domain, you can initialize the
@REM environment by calling @USERDOMAINHOME\setDomainEnv.
@REM
@REM setDomainEnv initializes or calls commEnv to initialize the following varia
bles:
@REM
@REM BEA_HOME
- The BEA home directory of your WebLogic installation.
@REM JAVA_HOME
- Location of the version of Java used to start WebLogic
@REM
Server.
@REM JAVA_VENDOR
- Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
@REM PATH
- JDK and WebLogic directories are added to system path.
@REM WEBLOGIC_CLASSPATH
@REM
- Classpath needed to start WebLogic Server.
@REM PATCH_CLASSPATH - Classpath used for patches
@REM PATCH_LIBPATH - Library path used for patches
@REM PATCH_PATH
- Path used for patches
@REM WEBLOGIC_EXTENSION_DIRS - Extension dirs for WebLogic classpath patch

@REM JAVA_VM
- The java arg specifying the VM to run. (i.e.
@REM
- server, -hotspot, etc.)
@REM USER_MEM_ARGS - The variable to override the standard memory arguments
@REM
passed to java.
@REM PRODUCTION_MODE - The variable that determines whether Weblogic Server is s
tarted in production mode.
@REM POINTBASE_HOME - Point Base home directory.
@REM POINTBASE_CLASSPATH
@REM
- Classpath needed to start PointBase.
@REM
@REM Other variables used in this script include:
@REM SERVER_NAME
- Name of the weblogic server.
@REM JAVA_OPTIONS - Java command-line options for running the server. (These
@REM
will be tagged on to the end of the JAVA_VM and
@REM
MEM_ARGS)
@REM
@REM For additional information, refer to the WebLogic Server Administration
@REM Console Online Help(http://e-docs.bea.com/wls/docs92/ConsoleHelp/startstop.
html).
@REM *************************************************************************
@REM Call setDomainEnv here.
set DOMAIN_HOME=D:\bea\user_projects\domains\crmdomain1
for %%i in ("%DOMAIN_HOME%") do set DOMAIN_HOME=%%~fsi
call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*
set SAVE_JAVA_OPTIONS= -Damdocs.system.home=d:\AmdocsCRM7.5.2\Clarify\asm_home Damdocs.uams.config.resource=res/crm/secsrv/alone -Damdocs.uams.config.print=tru
e -Damdocs.uams.startup.password=none -Dweblogic.alternateTypesDirectory=d:\Amdo
csCRM7.5.2\Clarify\lib -Dcom.amdocs.uif.server.UifConfigReader=com.amdocs.crm.ui
f.ConfigReader -Djava.security.auth.login.config=%WL_HOME%\server\lib\auth.conf
%JAVA_OPTIONS%
set JAVA_VM=-server
set MEM_ARGS= -Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m
Set SAVE_CLASSPATH=d:\AmdocsCRM7.5.2\lib\AmdocsSecurityManager.jar;d:\AmdocsCRM7
.5\Clarify\lib\ojdbc14.jar;d:\AmdocsCRM7.5.2\Clarify\lib\orai18n.jar;%CLASSPATH%
@REM Start PointBase
set PB_DEBUG_LEVEL=0
if "%POINTBASE_FLAG%"=="true" (
call "%WL_HOME%\common\bin\startPointBase.cmd" -port=%POINTBASE_PORT% -d
ebug=%PB_DEBUG_LEVEL% -console=false -background=true -ini=%DOMAIN_HOME%\pointba
se.ini >"%DOMAIN_HOME%\pointbase.log" 2>&1
)
set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS%
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,
address=8282,server=y,suspend=n
set CLASSPATH=%SAVE_CLASSPATH%
set SAVE_CLASSPATH=
if "%PRODUCTION_MODE%"=="true" (

set WLS_DISPLAY_MODE=Production
) else (
set WLS_DISPLAY_MODE=Development
)
if NOT "%WLS_USER%"=="" (
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.management.username=%WLS_USER
%
)
if NOT "%WLS_PW%"=="" (
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.management.password=%WLS_PW%
)
set CLASSPATH=%CLASSPATH%;%MEDREC_WEBLOGIC_CLASSPATH%
echo .
echo .
echo JAVA Memory arguments: %MEM_ARGS%
echo .
echo WLS Start Mode=%WLS_DISPLAY_MODE%
echo .
echo CLASSPATH=%CLASSPATH%
echo .
echo PATH=%PATH%
echo .
echo ***************************************************
echo * To start WebLogic Server, use a username and

echo * password assigned to an admin-level user. For *


echo * server administration, use the WebLogic Server *
echo * console at http:\\hostname:port\console

echo ***************************************************
@REM Set up IP Migration related variables.
@REM Set interface name.
if NOT "%Interface%"=="" (
set IFNAME=%Interface%
) else (
set IFNAME=
)
@REM Set IP Mask.

if NOT "%NetMask%"=="" (
set IPMASK=%NetMask%
) else (
set IPMASK=
)
@REM Perform IP Migration if SERVER_IP is set by node manager.
if NOT "%SERVER_IP%"=="" (
call "%WL_HOME%\common\bin\wlsifconfig.cmd" -addif "%IFNAME%" "%SERVER_I
P%" "%IPMASK%"
)
@REM START WEBLOGIC
echo starting weblogic with Java version:
%JAVA_HOME%\bin\java %JAVA_VM% -version
if "%WLS_REDIRECT_LOG%"=="" (
echo Starting WLS with line:
echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic
.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy
%PROXY_SETTINGS% %SERVER_CLASS%
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name
=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROX
Y_SETTINGS% %SERVER_CLASS%
) else (
echo Redirecting output from WLS window to %WLS_REDIRECT_LOG%
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name
=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROX
Y_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
)
CALL :stopAll
popd
@REM Exit this script only if we have been told to exit.
if "%doExitFlag%"=="true" (
exit
)

ENDLOCAL

You might also like