简体   繁体   English

从 spring 启动持续消费 rest web 服务

[英]Consuming rest web service continuously from spring boot

How can I consume an external rest endpoint from my spring boot application continuously?如何从我的 spring 启动应用程序连续使用外部 rest 端点? This end point returns new messages when invoked.此端点在调用时返回新消息。

In my opinion, unless the external endpoint has the ability to register a callback of yours, otherwise, you can't have a rest endpoint listener like JMS.在我看来,除非外部端点能够注册您的回调,否则,您将无法拥有像 JMS 这样的 rest 端点侦听器。

In another way, usually, we can have a scheduled job to pull from the external endpoint continuously.另一种方式,通常,我们可以有一个计划的作业来连续地从外部端点拉取。 And there are serval kind of scheduled jobs which explained in details at here: https://www.tutorialspoint.com/spring_boot/spring_boot_scheduling.htm并且有一些预定的作业在这里详细解释: https://www.tutorialspoint.com/spring_boot/spring_boot_scheduling.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM