Oracle WebLogic Server 12c: Administration I — Question 50
You created a shutdown class MyClass that you would like to execute just before server shutdown.
Which statement is true regarding MyClass?
Answer options
- A. MyClass can be specified in the Configuration Wizard as a shutdown class.
- B. MyClass must be available in the WebLogic Server's classpath.
- C. MyClass can be targeted to only one server instance.
- D. MyClass must not have a main method.
Correct answer: B
Explanation
The correct answer is B because MyClass needs to be included in the WebLogic Server's classpath for it to be executed properly during shutdown. Options A and C are incorrect as they imply limitations on configuration and targeting that are not true. Option D is also misleading since while having a main method is not necessary for a shutdown class, it does not affect the execution of the class itself.