【轉】同一台機器部署兩個jboss方法

來源:互聯網
上載者:User

標籤:

更改jboss的連接埠資訊

1) 更改webservic的連接埠資訊D:\jboss-new\server\default\conf\jboss-service.xml檔案

<mbean code="org.jboss.web.WebService"

      name="jboss:service=WebService">

      <!-- The Bind address and Port -->

      <attribute name="BindAddress">${jboss.bind.address}</attribute>     

      <attribute name="Port">8083</attribute>

      <!--  The address to use for the host portion of the RMI codebase URL -->

      <attribute name="Host">${java.rmi.server.hostname}</attribute>

      <!-- Should non-EJB .class files be downloadable -->

      <attribute name="DownloadServerClasses">true</attribute>

      <!-- Should resources other than .class files be downloadable. Both

         DownloadServerClasses and DownloadResources must be true for resources

         to be downloadable. This is false by default because its generally a

         bad idea as server configuration files that container security

         information can be accessed.

       -->

      <attribute name="DownloadResources">false</attribute>

 

      <!-- Use the default thread pool for dynamic class loading -->

      <depends optional-attribute-name="ThreadPool"

         proxy-type="attribute">jboss.system:service=ThreadPool</depends>

   </mbean>

2) 更改JNDI的連接埠資訊D:\jboss-new\server\default\conf\jboss-service.xml檔案

<mbean code="org.jboss.naming.NamingService"

      name="jboss:service=Naming"

      xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">

      <attribute name="CallByValue">false</attribute>

      <attribute name="Port">1099</attribute>

      <attribute name="BindAddress">${jboss.bind.address}</attribute>

      <attribute name="RmiPort">1098</attribute>

   </mbean>

3) 更改RMI連接埠資訊D:\jboss-new\server\default\conf\jboss-service.xml檔案

   <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker"

      name="jboss:service=invoker,type=jrmp">

      <attribute name="RMIObjectPort">4444</attribute>

      <attribute name="ServerAddress">${jboss.bind.address}</attribute>

      <depends>jboss:service=TransactionManager</depends>

   </mbean>

<mbean code="org.jboss.invocation.pooled.server.PooledInvoker"

      name="jboss:service=invoker,type=pooled">

  <attribute name="ServerBindPort">4445</attribute>

      <attribute name="ClientConnectAddress">${jboss.bind.address}</attribute>

      <attribute name="ClientConnectPort">0</attribute>

      <attribute name="ClientRetryCount">1</attribute>

      <attribute name="EnableTcpNoDelay">false</attribute>

  </mbean>

<attribute name="Configuration">

  <invoker transport="socket">

<attribute name="serverBindPort">4446</attribute>

      </invoker>

<attribute name="Configuration">

4) 更改JMS連接埠D:\jboss-new\server\default\deploy\jms\uil2-service.xml檔案

<mbean code="org.jboss.mq.il.uil2.UILServerILService"

   name="jboss.mq:service=InvocationLayer,type=UIL2">

<attribute name="ServerBindPort">8093</attribute>

</mbean>

5) 更改http連接埠D:\jboss-new\server\default\deploy\jboss-web.deployer下的server.xml檔案

<Connector port="28080" address="0.0.0.0"   

         maxThreads="250" maxHttpHeaderSize="8192"

         emptySessionPath="true" protocol="HTTP/1.1"

         enableLookups="false" redirectPort="8443" acceptCount="100"

         connectionTimeout="20000" disableUploadTimeout="true" />

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"

               maxThreads="150" scheme="https" secure="true"sslProtocol="TLS" />

 

<Connector port="8009" address="0.0.0.0" protocol="AJP/1.3"

         emptySessionPath="true" enableLookups="false" redirectPort="8443" />

6) 更改socket連接埠D:\jboss-new\server\default\conf\jboss-service.xml

mbean code="org.jboss.remoting.transport.Connector"

          name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">

      <depends>jboss.aop:service=AspectDeployer</depends>

      <attribute name="InvokerLocator">socket://${jboss.bind.address}:3873</attribute>

      <attribute name="Configuration">

         <handlers>

            <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>

         </handlers>

      </attribute>

   </mbean>
7)更改ejb socket連接埠D:\jboss-new\server\default\ deploy/ejb3.deployer\META-INF\ jboss-service.xml

<mbean code="org.jboss.remoting.transport.Connector"

          name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">

      <depends>jboss.aop:service=AspectDeployer</depends>

      <attribute name="InvokerLocator">socket://${jboss.bind.address}:3873</attribute>

      <attribute name="Configuration">

         <handlers>

            <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>

         </handlers>

      </attribute>

   </mbean>

 

【轉】同一台機器部署兩個jboss方法

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.