Thursday, June 9, 2011

Difference between Weblogic Production and Development Mode

Hi all,

Here is a quick view of a differences between Production and Development mode of Weblogic server.

Development mode:
  1. The default JDK for development domain is Sun Hotspot.
  2. Admin Server uses an automatically created boot.properties during startup
  3. The debugFlag which is used to start the WebLogic Workshop Debugger is enabled.
  4. You can use the demonstration digital certificates and the demonstration keystores provided by the WebLogic Server security services. With these certificates, you can design your application to work within environments secured by SSL. For more information about managing security, see "Configuring SSL" in Securing WebLogic Server at the following URL: http://download.oracle.com/docs/cd/E13222_01/wls/docs90/secmanage/ssl.html
  5. WebLogic Server instances can automatically deploy and update applications that reside in the domain_name/autodeploy directory (where domain_name is the name of a domain).It is recommended that this method be used only in a single-server development environment.For more information, see "Auto-Deploying Applications in Development Domains" in Deploying Applications to WebLogic Server at the following URL: http://download.oracle.com/docs/cd/E13222_01/wls/docs90/deployment/deploy.html#autodeploy.
  6. When you start a server, the server automatically renames (rotates) its local server log file as server-name.log.n. For the remainder of the server session, the server rotates its local log file whenever the size of the file reaches 500 kilobytes.

Production mode:

  1. The default JDK for production domain is JRockit
  2. If you use the demo certificates for SSL a warning is displayed
  3. Admin Server prompts for username and password during startup
  4. The default maximum capacity for JDBC Datasource is 25
  5. The debugFlag which is used to start the WebLogic Workshop Debugger is disabled.
  6. The auto-deployment feature is disabled, so you must use the WebLogic Server Administration Console, the WebLogic Deployer tool, or the WebLogic Scripting Tool (WLST)
  7. A server rotates its local log file after the size of the file reaches 5000 kilobytes. When the server is configured for production mode, by default, all versions of the log files are retained. Administrators may want to customize the number of log files retained.
Feel free to add more

Have a nice day,
Zeeshan Baig

6 comments:

  1. Another related post:
    http://oraclefusionfacts.blogspot.com/2011/06/weblogic-server-development-mode-vs.html

    ReplyDelete
  2. jrockit it is not necessarily the default jdk in production environments simply because on some platform jrockit is not available.

    Also in development mode, jre mode is -client and in production mode it's -server.

    Log levels also change between both modes and AFAIK default number of threads in the thread pool

    ReplyDelete
  3. Thanks for additional info.

    Zeeshan

    ReplyDelete
  4. In production mode jsp page_check_seconds is -1 which means updated jsps, even those deployed outside the autodeploy directory, are not detected.
    However, in development mode, you can edit a jsp, again even those deployed by means other than dropping in autodeploy dir, and they will be recompiled and served.
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html#wp1038491

    ReplyDelete
  5. Hi Zeeshan,

    It might not be relevent question here but let me ask what is the basic difference between Weblogic console and the Enterprise manager.

    Thanks

    Salman Dasti

    ReplyDelete
    Replies
    1. Hi,

      There is no such difference. From 12c release both tools can do the similar functionality. In console you can setup JDBC datasources, JMS Queues and Security Providers. In EM you can start and stop services and configure other security features such as KEY Maps and other stuff. Both can be used to start and stop servers.

      Hope it helps.

      Zeeshan

      Delete