简体   繁体   English

Axis2:仅加载一次模块

[英]Axis2: Load module only once

In our project we are using Axis2 and Rampart. 在我们的项目中,我们使用Axis2和Rampart。 Each time I create a ServiceClient there is a message in the logs that Apache Rampart is loaded. 每次创建ServiceClient时,日志中都会显示一条消息,提示已加载Apache Rampart。 Can it cause performance issues or loading process has some caching inside? 会导致性能问题,还是加载过程中有一些缓存? Is it possible to load modules once or at least suppress log output? 是否可以一次加载模块或至少抑制日志输出?

This is not a recommended solution. 这不是推荐的解决方案。 But for the worst case you can try this. 但在最坏的情况下,您可以尝试此操作。

In log4j we can disable log for the particular package or particular class. 在log4j中,我们可以禁用特定包或特定类的日志。 So you can disable the log from that package/class. 因此,您可以禁用该软件包/类中的日志。 But other error or any other log from that package/class also not show. 但是也不会显示该包/类的其他错误或任何其他日志。 Its your own risk. 这是您自己的风险。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM