简体   繁体   English

Java RMI独立应用程序

[英]Java RMI stand-alone applications

Java RMI stand-alone applications Java RMI独立应用程序

Is it possible to create a Server – Client Java application using RMI that can run just by running the server and the client (with servers IP), without any change on any environment variable, or installation of any other program? 是否可以使用RMI创建服务器 - 客户端Java应用程序,只需运行服务器和客户端(使用服务器IP),不对任何环境变量进行任何更改,或安装任何其他程序?

As far as I know, to make an RMI compo (Server – Client) to work, you need: server application client application protocol file(s) (implementations) common for both 据我所知,要使RMI组件(服务器 - 客户端)工作,您需要:服务器应用程序客户端应用程序协议文件(实现)共同使用

but the location of the server must be accessible by the client. 但客户端必须可以访问服务器的位置。 Is there a way that java can make it accessible without any help? 有没有一种方法可以让java在没有任何帮助的情况下访问它?

Is it possible to create a Server – Client Java application using RMI that can run just by running the server and the client (with servers IP), without any change on any environment variable, or installation of any other program? 是否可以使用RMI创建服务器 - 客户端Java应用程序,只需运行服务器和客户端(使用服务器IP),不对任何环境变量进行任何更改,或安装任何其他程序?

RMI doesn't have environment variables or separate programs. RMI没有环境变量或单独的程序。

As far as I know, to make an RMI compo (Server – Client) to work, you need: server application client application protocol file(s) (implementations) common for both 据我所知,要使RMI组件(服务器 - 客户端)工作,您需要:服务器应用程序客户端应用程序协议文件(实现)共同使用

No you don't. 不,你没有。 There is no such thing. 哪有这回事。 You just need the relevant .class files in each place. 你只需要在每个地方都有相关的.class文件。 I can't imagine where you are getting this misinformation from. 我无法想象你从哪里得到这个错误的信息。

but the location of the server must be accessible by the client. 但客户端必须可以访问服务器的位置。 Is there a way that java can make it accessible without any help? 有没有一种方法可以让java在没有任何帮助的情况下访问它?

No. Accessibility is a property of firewalls. 不可以。可访问性是防火墙的属性。 If you could change that from the client there wouldn't be any point in having them in the first place. 如果您可以从客户端更改它,那么首先让它们没有任何意义。

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

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