How can I view/browse the message on the queue programmatically? I don't want to consume the message.
Below is the code I am using to send the message:
@Autowired
private JmsTemplate producerJmsTemplate;
@Value("${.jms.host}")
private String jmsHost;
public void sendMessage(String message, String destQueue) {
this.producerJmsTemplate.convertAndSend(destQueue, message);
}
If you're using JMS then you can use a QueueBrowser. The Solace documentation has additional details: