JBoss配置url为本地IP

来源:互联网 发布:java入门电子书百度云 编辑:程序博客网 时间:2024/04/29 12:05

like this:

http://192.168.168.202:8080/backend/LoanApplicationServiceBean?wsdl 

需要修改3处:

1.D:/jboss-4.2.0.GA/server/all/deploy/jboss-web.deployer/server.xml里边的:

Connector port="8080" address="192.168.168.202"   
         maxThreads="250" maxHttpHeaderSize="8192"
         emptySessionPath="true" protocol="HTTP/1.1"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true" />

    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" address="192.168.168.202" protocol="AJP/1.3"

2.D:/jboss-4.2.0.GA/server/all/deploy/jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml里的:

<property name="webServiceHost">192.168.168.202</property>

原创粉丝点击