我有一个包含 ApplicationLifecycleListener 的 bean。像这样:
package vanzylvi.test;
import weblogic.application.ApplicationLifecycleEvent;
import weblogic.application.ApplicationLifecycleListener;
public class TestApplicationListener extends ApplicationLifecycleListener {
public void preStart(ApplicationLifecycleEvent evt) {
System.out.println("preStart GO GO GO");
}
}
在我的weblogic-application.xml
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90">
<listener>
<listener-class>vanzylvi.test.TestApplicationListener</listener-class>
</listener>
</weblogic-application>
我永远无法启动 preStart 位,我们将不胜感激。