简体   繁体   English

Linux消息中的WLS 12.1.3没有被使用者监听

[英]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.

相关问题 无法使用WLS 12.1.3的连接池中的Callable语句 - Not able to use Callable statement from Connection Pool from WLS 12.1.3 消费者消费的一条消息 - one message getting consumed by 2 consumer Spring Boot:在WLS中获取IllegalArgumentException - Spring Boot : Getting IllegalArgumentException in WLS JMS推动消费者延迟从Oralce AQ获取消息 - JMS Push Consumer delay in getting message from Oralce AQ 使用 spring 云 stream 将消息重新传送到 RabbitMQ 消费者设置 - Message getting redelivered to RabbitMQ consumer setup using spring cloud stream 消费者中的 Kafka 消息处理 - Kafka message handling in consumer RabbitMQ使用者错误消息 - RabbitMQ Consumer error message ActiveMQ:消费者一旦被选择处理特定的消息组,就不会收到非分组的消息 - ActiveMQ: consumer not getting non-grouped messages once it is selected to handle a specific message group 一旦消息数量超过并发消费者数量,消费者就不会被分配给消息 - Consumer not getting allocated to message once the number of messages exceed number of concurrent consumers 我不断收到“未提供OAuth使用方密钥/秘密组合”错误消息 - I keep getting the “OAuth consumer key/secret combination not supplied” error message
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM