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>

  • 相关阅读:
    hdoj 4251 The Famous ICPC Team Again
    hdoj 1879 最小生成树之继续畅通工程
    并查集之Dragon Balls
    并查集之 Is It A Tree?
    hdoj 1874最短路之畅通工程续
    1040: Count
    hdoj 1874最短路之最短路径问题
    并查集之小希的迷宫
    并查集之食物链
    Ordered Fractions
  • 原文地址:https://www.cnblogs.com/yanghj010/p/5028777.html
Copyright © 2011-2022 走看看