Polish spring-boot-sample-activemq
This commit is contained in:
@@ -39,7 +39,7 @@ public class Producer implements CommandLineRunner {
|
||||
}
|
||||
|
||||
public void send(String msg) {
|
||||
jmsMessagingTemplate.convertAndSend(queue, msg);
|
||||
this.jmsMessagingTemplate.convertAndSend(this.queue, msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
|
||||
package sample.activemq;
|
||||
|
||||
import javax.jms.Queue;
|
||||
|
||||
import org.apache.activemq.command.ActiveMQQueue;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.jms.annotation.EnableJms;
|
||||
|
||||
import javax.jms.Queue;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableJms
|
||||
public class SampleActiveMQApplication {
|
||||
|
||||
Reference in New Issue
Block a user