jinrongluo commented on a change in pull request #343:
URL: 
https://github.com/apache/incubator-eventmesh/pull/343#discussion_r631007708



##########
File path: 
eventmesh-test/src/main/java/org/apache/eventmesh/http/demo/sub/controller/SubController.java
##########
@@ -33,12 +35,17 @@
 
     public static Logger logger = LoggerFactory.getLogger(SubController.class);
 
+    @Autowired
+    private SubService subService;
+
     @RequestMapping(value = "/test", method = RequestMethod.POST)
     public String subTest(@RequestBody String message) {
         logger.info("=======receive message======= {}", 
JSONObject.toJSONString(message));
         JSONObject result = new JSONObject();
         result.put("retCode", 1);
-        return result.toJSONString();
+        String strResult = result.toJSONString();
+        subService.consumeMessage(strResult);

Review comment:
       Good comment! I will make the change to pass the message instead of 
result.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to