如何获取 WSO2 ESB 中内存消息存储中的消息计数?
我想获取 XML 配置中的计数,例如用于代理服务、序列或消息处理器等。
我希望它能在 XML 中使用。
最佳答案
您可以通过以下代码使用脚本中介器:
var msg_store = mc.getConfiguration().getMessageStore('YourMessageStoreName')
var log = mc.getServiceLog()
log.info("Current size of Message Store "+msg_store.size())
关于java - 获取 wso2 esb 中内存消息存储中的消息数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30907927/