zoukankan      html  css  js  c++  java
  • 【转】同一台机器部署两个jboss方法

    更改jboss的端口信息

    1) 更改webservic的端口信息D:jboss-newserverdefaultconfjboss-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-newserverdefaultconfjboss-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-newserverdefaultconfjboss-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-newserverdefaultdeployjmsuil2-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-newserverdefaultdeployjboss-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-newserverdefaultconfjboss-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-newserverdefault deploy/ejb3.deployerMETA-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>

  • 相关阅读:
    elasticsearch 中的Multi Match Query
    activiti 流程部署的各种方式
    elasticsearch 嵌套对象之嵌套类型
    elasticsearch Java High Level REST 相关操作封装
    elasticsearch 字段数据类型
    ubuntu 安装 docker
    elasticsearch 通过HTTP RESTful API 操作数据
    facenet 人脸识别(二)——创建人脸库搭建人脸识别系统
    POJ 3093 Margaritas(Kind of wine) on the River Walk (背包方案统计)
    墨卡托投影, GPS 坐标转像素, GPS 坐标转距离
  • 原文地址:https://www.cnblogs.com/yanghj010/p/5028777.html
Copyright © 2011-2022 走看看