NO-JIRA build fixes
This commit is contained in:
parent
3463e70e9d
commit
67b8359a78
|
@ -34,6 +34,7 @@ under the License.
|
||||||
<name>Artemis Tomcat JNDI Resources Example</name>
|
<name>Artemis Tomcat JNDI Resources Example</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<activemq.basedir>${project.basedir}/../../../..</activemq.basedir>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<projectBaseUri>${project.baseUri}</projectBaseUri>
|
<projectBaseUri>${project.baseUri}</projectBaseUri>
|
||||||
<java.version>1.6</java.version>
|
<java.version>1.6</java.version>
|
||||||
|
|
|
@ -30,19 +30,18 @@ import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
public class SendMessageController {
|
public class SendMessageController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private JmsTemplate jmsTemplate;
|
private JmsTemplate jmsTemplate;
|
||||||
|
|
||||||
|
@RequestMapping("/send")
|
||||||
@RequestMapping("/send")
|
public @ResponseBody String send(@RequestParam(value = "text", defaultValue = "hello world") final String text) {
|
||||||
public @ResponseBody String send(@RequestParam(value="text", defaultValue="hello world") final String text) {
|
jmsTemplate.send(new MessageCreator() {
|
||||||
jmsTemplate.send(new MessageCreator() {
|
@Override
|
||||||
@Override
|
public Message createMessage(Session session) throws JMSException {
|
||||||
public Message createMessage(Session session) throws JMSException {
|
return session.createTextMessage(text);
|
||||||
return session.createTextMessage(text);
|
}
|
||||||
}
|
});
|
||||||
});
|
return "sent: " + text;
|
||||||
return "sent: " + text;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -22,8 +22,8 @@ under the License.
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.activemq.examples.clustered</groupId>
|
<groupId>org.apache.activemq.examples.mqtt</groupId>
|
||||||
<artifactId>broker-clustered</artifactId>
|
<artifactId>mqtt-examples</artifactId>
|
||||||
<version>2.5.0-SNAPSHOT</version>
|
<version>2.5.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue