У меня такая ошибка в консоли:
Код: Выделить всё
jakarta.jms.InvalidDestinationException: Cannot determine response destination: Request message does not contain reply-to destination, and no default response destination set.Код: Выделить всё
[Error destination-JMSListener](https://i.sstatic.net/IYyK4yuW.png)
There is my code :
@RestController
@Service
@EnableJms
public class MQReceiver {
private static final Logger LOGGER = LoggerFactory.getLogger(MQReceiver.class.getName());
@JmsListener(destination = "${ibm.mq.additionalProperties.queue1}")
protected String receiveMessage(@Payload String message, @Header(JmsHeaders.MESSAGE_ID) String messageId) throws IOException , Throwable{
BufferedWriter bw;
FileWriter fw;
LOGGER.info("received OrderNumber='{}' with MessageId='{}'", message, messageId);
return "Le message est : " + message;
}
}
Подробнее здесь: https://stackoverflow.com/questions/785 ... n-reply-to
Мобильная версия