title: How to determine if a Weblogic server is in Production or Development mode?
body: <p>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: <a href="http://coder-in-training.blogspot.de/2012/04/specifying-projectstage-in-jndi-with.html" rel="nofollow">http://coder-in-training.blogspot.de/2012/04/specifying-projectstage-in-jndi-with.html</a> but the server mode defaults to Production, every time. Do you know a way to determine the Weblogic Startup Mode from java code? </p>
  
  <p>Thank you!</p>