简体   繁体   English

具有GlassFish和远程连接的Java Web服务

[英]Java Web Services with GlassFish and Remote Connections

Currently I have a Windows 2008 R2 server. 目前,我有一台Windows 2008 R2服务器。 On this server I have installed Glassfish 3.1. 在此服务器上,我已经安装了Glassfish 3.1。 On my server, I also have a copy of Netbeans installed. 在服务器上,我还安装了Netbeans副本。 I use Netbeans to develop a web service. 我使用Netbeans开发Web服务。 I can get Netbeans to deploy the web service I have created correctly to Glassfish, but it deploys on localhost. 我可以让Netbeans将我正确创建的Web服务部署到Glassfish,但是它部署在localhost上。 Do I need to modify Glassfish or Netbeans so that the web service is deployed on the public ip address for the server and not local host? 我是否需要修改Glassfish或Netbeans,以便将Web服务部署在服务器而不是本地主机的公共IP地址上?

Thanks 谢谢

Glassfish in the standard configuration binds to all network interfaces (ie responds on all IP-numbers the machine has). 标准配置中的Glassfish绑定到所有网络接口(即,对计算机具有的所有IP编号进行响应)。

Hence, if you have deployed it to Glassfish on a machine you should be able to access it with an URL pointing to any of the machines names or IP-numbers. 因此,如果您已将其部署到计算机上的Glassfish中,则应该能够使用指向任何计算机名称或IP编号的URL进行访问。

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

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