Hi all,
Last week i experienced a little task to change the "Production mode" settings to TRUE in weblogic domain. Setting up the mode to true was easy and straight forward but a little trick comes where for some reasons we had to rollback that change to test some issues.
If you want to know what are the differences between the two modes check this post
To configure all servers in a domain to run in production mode:
So here are the steps to configure all servers in a domain back to development mode. Weblogic server stores its information in a configuration file.
Hope you find it useful,
Zeeshan Baig
Last week i experienced a little task to change the "Production mode" settings to TRUE in weblogic domain. Setting up the mode to true was easy and straight forward but a little trick comes where for some reasons we had to rollback that change to test some issues.
If you want to know what are the differences between the two modes check this post
To configure all servers in a domain to run in production mode:
- Login to Weblogic Console
- In the left pane of the WebLogic Console, under Domain Structure, select the domain name.
- Select Configuration > General and select the Production Mode check box.
- Click Save, and then, to activate these changes, in the Change Center, click Activate Changes.
- Start and stop any servers that are currently running.
Reminder: Once the mode set to PRODUCTION you cannot change it from Weblogic Console
So here are the steps to configure all servers in a domain back to development mode. Weblogic server stores its information in a configuration file.
- Stop the servers running in a domain.
- Open the config.xml file location under MIDDLEWARE_HOME/domains/domain_name/config
- Change the production-mode entry to false and save the file and exit
- Start all servers you should be able to see the following message on console.
Hope you find it useful,
Zeeshan Baig
If you change the setDomainEnv.sh/cmd you don't need to change the config.xml at all.
ReplyDeleteIt's never recommended to touch directly the config.xml
Hi anon,
ReplyDeleteWhen you want to revert the changes back to development mode you have to touch the config.xml
try it then update the comments. i tried this with weblogic 10.3.2
Thanks,
Zeeshan
Hi Zeeshan,
ReplyDeleteI am trying to add a new mail session in console when it is in
production mode. It gets lost when the server is restarted.
Is it an expected behavior?
Thanks,
Sujeet
Hi,
Deletewhat do you mean by mail session?
In production mode you have to first click Lock & Edit button on top right then do your changes and then click Release configuration.
If server asks for restart then check restart check list to restart only required items.
Let me know the steps to repeat i will give you better answer.
ZB
Assalam Bhai
ReplyDeleteGreat work zeshan bhai
life saver
ReplyDelete