Previous Topic: IBM WebSphereNext Topic: Specifying LDAP Pool Options Using Managed Server


Oracle WebLogic

Including LDAP Options in Startup Script

This section provides the steps to include the LDAP connection pool parameters in WebLogic server startup script:

  1. Log in to the system
  2. Create a backup copy of the WebLogic Server startup script. This script is available at the following location:
    domain-name\bin\startWebLogic.cmd
    
  3. Open the script in a text editor.
  4. Add the following entries in the section that is used to start the WebLogic server.

    The following code snippet shows a sample script with LDAP connection pool parameters:

    @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% -Dcom.sun.jndi.ldap.connect.pool.maxsize=64 -Dcom.sun.jndi.ldap.connect.pool.prefsize=32 -Dcom.sun.jndi.ldap.connect.pool.initsize=8 -Dcom.sun.jndi.ldap.connect.pool.timeout=240000 -Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl" -Dcom.sun.jndi.ldap.connect.pool.authentication=simple -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_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 %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
    )
    
  5. Save and close the file.
  6. Restart WebLogic Server.