• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to determine if the server is in Production or Development mode?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I am facing a problem in detecting (from application's code) whether the server runs in Production or Development mode, as it requires different behaviors. This link looked pretty promising: http://coder-in-training.blogspot.de/2012/04/specifying-projectstage-in-jndi-with.html but the server mode defaults to Production, every time. Do you know a way to determine the Weblogic Startup Mode from java code?

Thank you!
 
Ranch Hand
Posts: 376
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
with MBeans (JMX) you can check using:

http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13945/weblogic/management/configuration/DomainMBean.html

boolean isProductionModeEnabled()
Specifies whether all servers in this domain run in production mode.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic