Fix spring-jms
This commit is contained in:
parent
ea37b3e51a
commit
e7ea2e1d2b
|
@ -24,6 +24,10 @@ public class SampleJmsMessageSender {
|
|||
}
|
||||
|
||||
public void sendMessage(final Employee employee) {
|
||||
System.out.println("Jms Message Sender : " + employee);
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("name", employee.getName());
|
||||
map.put("age", employee.getAge());
|
||||
this.jmsTemplate.convertAndSend(map);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
|
||||
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
|
||||
xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
|
||||
xmlns:util="http://www.springframework.org/schema/util" xmlns:task="http://www.springframework.org/schema/task"
|
||||
xmlns:amq="http://activemq.apache.org/schema/core"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://activemq.apache.org/schema/core
|
||||
http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
|
||||
xmlns:amq="http://activemq.apache.org/schema/core"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://activemq.apache.org/schema/core
|
||||
http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd">
|
||||
|
||||
<!-- Embedded ActiveMQ Broker -->
|
||||
<amq:broker id="broker" useJmx="false" persistent="false" useShutdownHook="false">
|
||||
<amq:broker id="broker" useJmx="false" persistent="false">
|
||||
<amq:transportConnectors>
|
||||
<amq:transportConnector uri="tcp://localhost:61616" />
|
||||
</amq:transportConnectors>
|
||||
|
|
Loading…
Reference in New Issue