Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@

public class SampleListener implements MessageListener {

private JmsTemplate jmsTemplate;
public JmsTemplate getJmsTemplate() {
return getJmsTemplate();
this.jmsTemplate = jmsTemplate;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You changed the getter into a setter without changing a name. Is this intentional?

}

public void onMessage(Message message) {
if (message instanceof TextMessage) {
try {

String msg = ((TextMessage) message).getText();
System.out.println("Message has been consumed : " + msg);
} catch (JMSException ex) {
throw new RuntimeException(ex);
}
Expand Down