[英]WLS 12.1.3 in Linux Message is not getting Listened by Consumer
I have deployed the code as war in WLS 12.1.3 where I am sending message from a Producer and the messages are consumed by the below code and the application is deployed as war in WLS server in Windows and it is listening but the same war is deployed with same version of 12.1.3 WLS in Linux but I can able to see the message count in the Queue Monitoring but the message is not listening by the application. 我已在WLS 12.1.3中将代码部署为war,在其中我从生产者发送消息,并且消息被以下代码占用,并且该应用程序被部署为Windows中的WLS服务器中的war,它正在侦听,但存在相同的战争在Linux中使用相同版本的12.1.3 WLS进行了部署,但是我可以在“队列监控”中看到消息计数,但是消息未被应用程序侦听。 How to track the application is reading the messages in Linux server and there is no update in logs.
如何跟踪应用程序正在读取Linux服务器中的消息,并且日志中没有更新。
@MessageDriven(mappedName = "jms/jjQueue", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
})
public class JMSMessageConsumer implements MessageListener {
private final static Logger LOGGER = Logger.getLogger(JMSMessageConsumer.class);
public JMSMessageConsumer() {
}
@Override
public void onMessage(Message message) {
if (message instanceof TextMessage) {
try {
String mess = ((TextMessage) message).getText();
LOGGER.info("Message Received >> " + mess);
} catch (JMSException e) {
LOGGER.info("Error in exception" + e);
}
}
}
}
I found in my windows for the JMSMessageConsumer in WLS there is running cound but in Linux it is showing as "This EJB is not currently active on any running server." 我在WLS中的JMSMessageConsumer窗口中发现正在运行,但是在Linux中它显示为“此EJB当前在任何正在运行的服务器上均未激活”。 How to make it active in WLS as I have deployed this application as war.Please suggest how to make it active.
我已将此应用程序部署为war,因此如何在WLS中激活它。请提出如何使其激活的建议。
我没有在WLS中启动该服务。启动该服务后,它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.