weblogic集群中的Singleton服务正在注册,但未调用activate方法

weblogic集群中的Singleton服务正在注册,但未调用activate方法,weblogic,ejb-3.1,Weblogic,Ejb 3.1,我在一个maven多模块EAR项目中使用EBJ 3.1在weblogic 12.2.1.2中实现一个单例服务 我的单例服务正在群集中注册 这是注册节点的日志: <BEA-000189> <The Singleton Service Appscoped_Singleton_Service is now active on this server.> 谢谢您的时间。我现在在我的src\main\application\META-INF\weblogic applicatio

我在一个maven多模块EAR项目中使用EBJ 3.1在weblogic 12.2.1.2中实现一个单例服务

我的单例服务正在群集中注册

这是注册节点的日志:

<BEA-000189> <The Singleton Service Appscoped_Singleton_Service is now active on this server.>

谢谢您的时间。

我现在在我的src\main\application\META-INF\weblogic application.xml中找到了这个

<wls:singleton-service>
    <wls:class-name>com.test.MySingletonServiceClass</wls:class-name>
    <wls:name>Appscoped_Singleton_Service</wls:name>
</wls:singleton-service>

com.test.MySingletonServiceClass
Appscoped_Singleton_服务

我现在在我的src\main\application\META-INF\weblogic application.xml中使用了它

<wls:singleton-service>
    <wls:class-name>com.test.MySingletonServiceClass</wls:class-name>
    <wls:name>Appscoped_Singleton_Service</wls:name>
</wls:singleton-service>

com.test.MySingletonServiceClass
Appscoped_Singleton_服务

您认为为什么不调用这些方法?因为日志中缺少输出?我现在在src\main\application\META-INF\weblogic-application.xml
com.test.MySingletonServiceClass Appscoped\u Singleton\u服务中使用了它,您认为为什么不调用这些方法?由于日志中缺少输出,我现在可以在src\main\application\META-INF\weblogic-application.xml
com.test.MySingletonServiceClass Appscoped\u Singleton\u服务中使用它
<wls:singleton-service>
    <wls:class-name>com.test.MySingletonServiceClass</wls:class-name>
    <wls:name>Appscoped_Singleton_Service</wls:name>
</wls:singleton-service>