简体   繁体   English

Amazon EC2和jbossws

[英]Amazon EC2 and jbossws

I've deployed a webservice to a Jboss instance running on Amazon EC2. 我已将Web服务部署到在Amazon EC2上运行的Jboss实例。 The webservice works fine locally, but when I deploy on EC2, and go to the /jbossws/services page the Endpoint Address for the webservice is the private DNS of the ec2 instance (domU-XXXX etc...), not the public dns (which I would like it to be). 该Web服务在本地可以正常运行,但是当我在EC2上进行部署并转到/ jbossws / services页面时,该Web服务的端点地址是ec2实例的私有DNS(domU-XXXX等),而不是公共dns。 (我希望如此)。

I've tried loading the wsdl by changing the private hostname to the public IP; 我尝试通过将私有主机名更改为公共IP来加载wsdl; that works, but when I try to call any of the operations I get a HostNotFoundException, I'm guessing due to the fact that the generated wsdl has the stanza: 可以,但是当我尝试调用任何操作时,我得到一个HostNotFoundException,我猜测是由于生成的wsdl具有节的事实:

<service name='XXXService'> <port binding='tns:XXXBinding' name='XXXPort'> <soap:address location='http://domU-XX-XX-XX-XX-XX-XX.compute-1.internal:8080/xx/xx/xx'/> </port> </service>

where http://domU-XX-XX-XX-XX-XX-XX.compute-1.internal is the internal dns of the ec2 instance. 其中http://domU-XX-XX-XX-XX-XX-XX.compute-1.internal是ec2实例的内部dns。

The wsdl is auto generated - Is there a JAXB annotation I can use so that I can force the generated wsdl to use the public dns of the EC2 instance? wsdl是自动生成的-是否可以使用JAXB注释,以便强制生成的wsdl使用EC2实例的公共dns?

Many thanks - 非常感谢 -

In JBoss 5.1.0 GA look at jbossws.deployer/META-INF/jboss-beans.xml and comment the following line ${jboss.bind.address} 在JBoss 5.1.0 GA中,查看jbossws.deployer / META-INF / jboss-beans.xml并注释以下行$ {jboss.bind.address}

it is 100% worked 这是100%可行的

or see the following http://community.jboss.org/wiki/JBossWS-UserGuide 或参见以下http://community.jboss.org/wiki/JBossWS-UserGuide

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

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