Oracle Weblogic Server (MOSC)

MOSC Banner

Knowing when code is being run in Weblogic or standalone

edited Jun 17, 2014 12:00PM in Oracle Weblogic Server (MOSC) 1 commentAnswered

Hello.

We are using the startup features provided with weblogic, however to test these things we do this outside weblogic, so there is certain hardwire logic to check if we're running with weblogic or without it. Currently we're using weblogic.kernel.KernelStatus.isServer() but this fails sometimes. Is there any way to know for certain if we're running with or without weblogic. Class.forName is not an option.

TIA

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center