我应该使用什么通信技术来创建我的应用程序?
你好 作为一个项目,我被要求使用 java 编写我自己的保管箱。我的程序将像原始保管箱一样,有一个监听器(使用 nio2-already 写入)到特定文件夹,并且需要将文件上传到远程服务器。服务器还将有一个简单的界面,我将其留到最后。我可以得到我想要的每一种技术。我们学习了hibernate(因为我需要将数据保存在mySQL DB中)。我们还学习了套接字、servlet、rest 和 comet。
我对如何进行程序的通信部分有点困惑。我可以使用套接字,但它的级别非常低,我一直在寻找更快的高级和更简单的技术。我读了很多书,看到了很多术语,例如 Apache Mina、Netty、RMI...
我需要一些简单的东西,其中包含常见问题解答和在线示例,以支持:
- 多线程服务器应用程序。
- 我不在乎它是否在 HTTP 上...
- 易于实现并在多个客户端和服务器之间传输数据。
- 一种简单的方法,如果文件发生更改,服务器将通知客户端。
交易分配
hello
As a project I've been asked to write using java my own dropbox. My program will have, like the original dropbox a listener (using nio2-already wrote) to a specific folder and will need to upload the files to a remote server. The server will also have a simple interface that I'm leaving to the end. I can every technology i want. we learned hibernate (because i need to save the data in mySQL DB). We also learned sockets, servlets, rest, and comet.
i'm a little confused of how to do the communication part of my program. i can use socket but it's very low level and i was searching for a more faster high level and easier technology. I read so much and saw so many terms such as Apache Mina, Netty,RMI...
i need something simple with allot of FAQ and examples online that will support:
- a multi thread server application.
- i don't care if it's on HTTP...
- easy to implement and transfer data between several clients and a server.
- a simple way that if a file changes the server will notify the client.
tnx allot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
输入带有 servlet 的 Apache Tomcat。至于通知。您可以将容器嵌入到客户端中,并让服务器推送更新通知。
Enter Apache Tomcat with servlets. As for the notification goes. You may embed the container in the client and have the server push the update notification.