Linux 中的 WLS 12.1.3 - 消息未被消费者收听
WLS 12.1.3 in Linux - a message is not getting listened to by a consumer
我已将代码部署为 WAR file in WebLogic Server (WLS) 12.1.3,我从生产者发送消息,消息由以下代码使用。该应用程序在 Windows 中部署为 WLS 服务器中的 WAR 文件并且正在侦听,但在 [=21= 中部署了相同版本的 12.1.3 WLS 的相同 WAR 文件].
我可以在队列监控中看到消息计数,但应用程序未侦听该消息。我如何跟踪应用程序正在读取 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);
}
}
}
}
我在我的 Windows 中发现 WLS 中的 JMSMessageConsumer 有 运行 声音,但在 Linux 中它显示为“此 EJB 当前未在任何 运行 服务器。”我已将此应用程序部署为 WAR 文件,因此如何使其在 WLS 中处于活动状态。我怎样才能激活它?
我没有在 WLS 中启动服务。启动服务后,一切正常。
我已将代码部署为 WAR file in WebLogic Server (WLS) 12.1.3,我从生产者发送消息,消息由以下代码使用。该应用程序在 Windows 中部署为 WLS 服务器中的 WAR 文件并且正在侦听,但在 [=21= 中部署了相同版本的 12.1.3 WLS 的相同 WAR 文件].
我可以在队列监控中看到消息计数,但应用程序未侦听该消息。我如何跟踪应用程序正在读取 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);
}
}
}
}
我在我的 Windows 中发现 WLS 中的 JMSMessageConsumer 有 运行 声音,但在 Linux 中它显示为“此 EJB 当前未在任何 运行 服务器。”我已将此应用程序部署为 WAR 文件,因此如何使其在 WLS 中处于活动状态。我怎样才能激活它?
我没有在 WLS 中启动服务。启动服务后,一切正常。