简体   繁体   English

从Java类写入servlet并从另一个应用程序读取

[英]Writing to a servlet from a java class and reading from another application

I want my java class , which has the processed information , to write to a servlet. 我希望我的Java类(已处理的信息)写入Servlet。 Then I want the separate module to read this information from the servlet. 然后,我希望单独的模块从servlet读取此信息。 Is it possible to do so? 有可能这样做吗?

In many examples I found writing to a servlet and getting back the response to the same java class. 在许多示例中,我发现写入servlet并将响应返回到相同的Java类。 I want the content which has written to the servlet to remain until my other application reads from it. 我希望写入servlet的内容能够保留,直到我的其他应用程序读取它为止。

Please , any help is appreciated. 请,任何帮助表示赞赏。

The servlet needs a queue or stack to store the information. Servlet需要一个队列或堆栈来存储信息。

Provide one method to push an entry. 提供一种推送条目的方法。

Provide another method to pull an entry. 提供另一种提取条目的方法。

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

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