[英]spring mvc without web server (tomcat or glassfish)
I just need a little hint in what direction my research should go.我只需要一点提示,说明我的研究应该朝哪个方向发展。
Because currently I have a spring standalone jar project (spring-context, spring-data-jpa and hibernate entitymanager. Everything set up without xml files).因为目前我有一个 spring 独立 jar 项目(spring-context、spring-data-jpa 和 hibernate entitymanager。所有设置都没有 xml 文件)。
Now I want to run this application on two computers inside a network.现在我想在网络内的两台计算机上运行这个应用程序。 Both should be able to send objects over the network .
两者都应该能够通过网络发送对象。 But I want to accomplish this without a web server (so no tomcat or glassfish).
但是我想在没有 Web 服务器的情况下完成此操作(因此没有 tomcat 或 glassfish)。
Is this even possible?这甚至可能吗? and how is this called?
这怎么称呼?
I have problems finding something close to this plan.我很难找到接近这个计划的东西。 Most of the time I find tutorials and threads for sending objects with tomcat.
大多数时候我会找到使用 tomcat 发送对象的教程和线程。 But I more or less only need a open port that listens to incomming objects.
但我或多或少只需要一个开放的端口来监听传入的对象。
EDIT编辑
Later I also want to put a third player in the communication process: A website.后来我还想在交流过程中放第三个播放器:一个网站。 So then two standalone jar programs and one website will pass objects around.
那么两个独立的 jar 程序和一个网站将传递对象。 That's why I hope spring mvc will work for a stanalone solution as well.
这就是为什么我希望 spring mvc 也适用于 stanalone 解决方案。
(I know that this question will get tagged down, but it's ok, as long as I get some designations I can use to research better, so thanks ...) (我知道这个问题会被标记下来,但没关系,只要我得到一些可以用来更好地研究的名称,所以谢谢...)
You have many specifications.你有很多规格。 ProtoBuf seems to be interesting https://github.com/google/protobuf/tree/master/java
ProtoBuf 似乎很有趣https://github.com/google/protobuf/tree/master/java
Without having server it would be a pain for you as you will have to implement concurrency, security and this kind of stuff.如果没有服务器,这对您来说会很痛苦,因为您将不得不实现并发性、安全性和这类东西。
Does Spring Boot work for you? Spring Boot 对你有用吗? Server is embeded ;-)
服务器已嵌入 ;-)
What about use normal java sockets?使用普通的java套接字怎么样? There is plenty information if you google it.
如果你谷歌它有很多信息。 If you need help with this just let me know and I can send you some java application.
如果您需要这方面的帮助,请告诉我,我可以向您发送一些 Java 应用程序。 Just type Java Sockets and lets learn!
只需键入 Java Sockets 并让我们学习!
Alvaro.阿尔瓦罗。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.