在我的应用程序中,我在diff类中有@kafkalistener和@jmslistener,当我运行程序jms侦听器首先消耗数据时,我想并行运行。
@KafkaListener(topics = "topicName", groupId = "foo")
public void listen(String message) {
System.out.println("Received Messasge in group foo: " + message);
}
jms代码
@JmsListener(destination = AppConfig.QUEUE_NAME)
public void handleMessage(String message) {//implicit message type conversion
System.out.println("received: "+message);