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