Wednesday, April 13, 2011

How to DISABLE and ENABLE Production Mode in WebLogic domain for WebLogic 9 & above

Sharing my own experience on this post.

I started working a third party product at the client location and there one of the suggestion, to run the product smoothly is to create the WebLogic domain with Production Mode always enabled. But I never noticed that I went wrong while creating the WebLogic domain and selected the Development instead and completed the 60% of the installation, as per the documentation provided by the vendor. Later on when I restarted the WebLogic domain and tailing the logs for Admin server [sitting with the vendor], we realized that domain was running in Development Mode. Vendor refused to support this issue and did not want me continue forward with the rest of the installation until the domain is running in Production Mode. I had to sit late and complete the initial 60% of work with WebLogic domain running in Production Mode because I was not aware of "How to Enable the Production Mode in the domain"

This post is to help others who can come across such situation.




Topic A: Disabling the Production Mode
One way to disable Production Mode, by simply editing config.xml which resides in $DOMAIN_HOME/config directory. 
Note: It is not possible to disable Production Mode via Weblogic Console GUI

1. Look for the line that sets the 
production-mode-enabled parameter.
<production-mode-enabled>true</production-mode-enabled>

   Edit the
production-mode-enabled parameter to false as below to ensure the server starts in development mode. If you do not find this configuration in your config.xml, you can add this configuration after <configuration-version>9.2.0.0</configuration-version>
<production-mode-enabled>false</production-mode-enabled>

2
. Save your changes and restart the Domain.



<Apr 13, 2011 7:40:41 PM GMT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "admin" for domain "base_domain" running in Development Mode> 


3. Verify by logging into Weblogic Console GUI.
    In the Left hand pane under Domain Structure section click on the Domain Name. Now navigate to Configuration - General tab. If you see a Production Mode parameter with a "Unchecked" check box as in snapshot below then your WebLogic domain is running in Development Mode.















Topic B: Enabling the Production Mode
Option 1:
One of the way to enable Production Mode is just easy and via Weblogic Console GUI.


1. Once you login to Weblogic Console, in the Left hand pane under Domain Structure section click on the Domain Name.
 

2. Now navigate to Configuration - General tab on the right hand pane.


3. Select the "production mode" check box to enable production mode.





4. Save the changes and click Activate Changes. Once Changes are activated you see the below snapshot on the console and below similar entries in the Admin server logs.

 
<Apr 13, 2011 7:44:58 PM GMT> <Warning> <Management> <BEA-141239> <The non-dynamic attribute RotateLogOnStartup on weblogic.management.configuration.WebServerLogMBeanImpl@f1655a77([base_domain]/Servers[ManagedServer1]/WebServer[ManagedServer1]/WebServerLog[ManagedServer1]) has been changed. This may require redeploying or rebooting configured entities>


5. Restart the domain and your domain will be running in PRODUCTION MODE.


<Apr 13, 2011 7:47:24 PM GMT> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server"admin" for domain "base_domain" running in Production Mode>

Options 2:
Other way to enable Production Mode, by simply editing config.xml which resides in $DOMAIN_HOME/config directory. 
Note: It is not possible to disable Production Mode via Weblogic Console GUI

1. Look for the line that sets the 
production-mode-enabled parameter.
<production-mode-enabled>false</production-mode-enabled>

   Edit the
production-mode-enabled parameter to true as below to ensure the server starts in development mode. If you do not find this configuration in your config.xml, you can add this configuration after <configuration-version>9.2.0.0</configuration-version>
<production-mode-enabled>true</production-mode-enabled>

2. Save your changes and restart the Domain.



<Apr 13, 2011 7:47:24 PM GMT> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "admin" for domain "base_domain" running in Production Mode>



3. Verify by logging into Weblogic Console GUI.
    In the Left hand pane under Domain Structure section click on the Domain Name. Now navigate to Configuration - General tab. If you see a Production Mode parameter with true value as in snapshot below then your WebLogic domain is running in Production Mode. 


10 comments:

Anonymous said...

When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment
is added I get four e-mails with the same comment. Is there any way you can remove people from that service?

Cheers!

My website :: site

Anonymous said...

I am genuinely glad to glance at this webpage posts which includes plenty of useful information,
thanks for providing such statistics.

My site; book of ra tricks 2013 ()

Anonymous said...

Thank you. This is exactly what i was looking for.

Unknown said...

Remember, the feeling you get from a good is far better than the feeling you get from sitting around wishing you were running. See the link below for more info.


#running
www.ufgop.org

Unknown said...

yes really its very use full information

http://www.leadinglinkdirectory.com

Unknown said...

Some web design programming/instruments are improved to such a degree. To the point that one should simply move the different components around in a promptly accessible layout. Other programming take after the what-you-see-is-the thing that you-get (WYSIWYG) component, where one can arrange their work an indistinguishable route from one does in a word processor, and they get the chance to see these impacts progressively. A Beginner’s Guide to the Best Web Design Software

Unknown said...
This comment has been removed by the author.
Unknown said...

More information about .cfg or .xml you can find on this wiki wikiext.com/cfg

nikkolayebba said...

It’s laborious to find knowledgeable people on this topic, but you sound like you understand what you’re talking about! Thanks online casino games

pakistani matrimonial rishta said...





Introducing Pakistan Rishta service
Welcome to Rishta Pakistan Website Allah Swt made your partner already
in heaven so we help for finding your life partner at earth through this
website Create an account and look for your Muslim life partner
E-Commerce Diversify
Roofing company