I need to develop an application in which I have a Java script running on the client that needs to call Java procedures on the server (for example getting data from a database, I cannot do it directly from the client because the only port that is open on my Web Service is port 80). Since the only port open on the server is port 80 and a Web Service is listening on that port I cannot create a Java socket (am I correct?). What other options do I have?
我需要开发一个应用程序,其中我在客户端上运行需要在服务器上调用Java过程的Java脚本(例如从数据库获取数据,我不能直接从客户端执行,因为唯一的端口是打开的在我的Web服务上是端口80)。由于服务器上唯一打开的端口是端口80,而Web服务正在侦听该端口,因此我无法创建Java套接字(我是否正确?)。我还有其他选择吗?
Thanks a lot in advance, any help will be greatly appreciated
非常感谢提前,任何帮助将不胜感激
1 个解决方案
#1
0
You can not create another listener on the same server port - that is correct, but you can create a socket - that is the actual connection between the browser and server.
There may be a (large) number of sockets connections between client(s) and server but only one listener per public port.
您不能在同一服务器端口上创建另一个侦听器 - 这是正确的,但您可以创建一个套接字 - 这是浏览器和服务器之间的实际连接。客户端和服务器之间可能存在(大量)套接字连接,但每个公共端口只有一个侦听器。
#1
0
You can not create another listener on the same server port - that is correct, but you can create a socket - that is the actual connection between the browser and server.
There may be a (large) number of sockets connections between client(s) and server but only one listener per public port.
您不能在同一服务器端口上创建另一个侦听器 - 这是正确的,但您可以创建一个套接字 - 这是浏览器和服务器之间的实际连接。客户端和服务器之间可能存在(大量)套接字连接,但每个公共端口只有一个侦听器。