WebLogic development model and Production mode introduction __web

Source: Internet
Author: User

introduction of WebLogic development model and production mode

Development mode: This mode enables automatic deployment

production mode: This mode turns off automatic deployment

WebLogic Server Three deployment methods: Automatic deployment, console deployment, command deployment

Automatic deployment: When it is enabled, the Management server will build the specified directory to determine whether there are new or updated applications, and Weblogic server will automatically deploy all files or directories in that directory.
By default, the automatic deployment directory is the "/home/weblogic/bea/user_projects/domains/domainname/autodeploy" subdirectory of the domain, and any new files found in the Autodeploy directory are automatically deployed , the archived files that are edited or modified in the applications directory will be redeployed.
If the application is in an expanded format, create an empty file named redeploy, place it in the Web-inf directory, and then modify the file to update its timestamp when the application needs to be redeployed, and the server periodically checks for updates to the redeploy file timestamp.

Finally, in the currently existing applications directory, files that are subsequently deleted are automatically canceled from the application server.

Console deployment: Log in to the console, select a deployment project, proceed to the next step, deploy next

Command deployment: Wlst under Deployment (this is relatively small)

Other places for reference (personally think more reliable):

You can modify the startup mode of the corresponding server in the admin console as one of the development or product modes. or modify the service's startup file or commenv file to add set Production_mode=true.

This is it.
@rem Set Production Mode.   When set to True, the server starts on production mode. When
@rem set to False, the server starts the development mode. The default is False.
Set Startmode=true
---------------------------------------------------------------
According to WebLogic technical engineer, the product model is to ensure that the speed is placed in the specified directory, his package will not be automatically updated. Development mode is relatively free, it guarantees the development flexibility, casually throws it everywhere automatically updates, this will affect the speed. General development of good products, all to customers with product model deployment.
---------------------------------------------------------------

You can start your domain in one of the modes, development or production. You use the development mode while you are developing your applications. Development mode uses a relaxed security configuration and allows you to auto-deploy applications. You use the production mode when your application are running in its final form. A production domain uses full security and could use the clusters or other advanced features.
---------------------------------------------------------------

In development mode, the main purpose is to meet the frequently changing needs of the user's application, and the server will automatically refresh your app and immediately see the most recent page of changes, but this will affect efficiency. Therefore, in the formal operating environment, the general application changes less, it is recommended to choose the product model to improve performance.
---------------------------------------------------------------


The development mode supports hot deployment, while booting is slow and performance is inferior to the product model.

production mode and development mode conversion:

1, Production Mode--"Development mode

Change the DOMAIN path under%domain_home%\bin\setdomainenv.cmd file set Production_mode=true to set Production_mode=false or set PRODUCTION _mode=

Change the%domain_home%\config\config.xml file in <production-mode-enabled>true</production-mode-enabled> to < Production-mode-enabled>false</production-mode-enabled> or delete it directly.

2, Development mode--"production mode

Change the DOMAIN path under%domain_home%\bin\setdomainenv.cmd file set production_mode= to set Production_mode=true

PS: Above is the method of changing configuration under the Windows environment, very similar in Linux environment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.