简体   繁体   中英

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. Then I want the separate module to read this information from the 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. I want the content which has written to the servlet to remain until my other application reads from it.

Please , any help is appreciated.

The servlet needs a queue or stack to store the information.

Provide one method to push an entry.

Provide another method to pull an entry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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