Created
May 31, 2020 10:01
-
-
Save madan712/5e4259239dc7492ff31ac8f1a2eda3a7 to your computer and use it in GitHub Desktop.
Receiver.java - Spring boot ActiveMQ example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javaxp.testjmsclient; | |
import org.springframework.jms.annotation.JmsListener; | |
import org.springframework.stereotype.Component; | |
@Component | |
public class Receiver { | |
@JmsListener(destination = "myQueue") | |
public void readMessage(String message) { | |
System.out.println("Received message: " + message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment