Deploy multiple JBoss instances on the same server

Source: Internet
Author: User

Modify JBoss port information

1) Change webservic port information D: \ JBoss-New \ Server \ Default \ conf \ jboss-service.xml File

<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>

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

<Attribute name = "downloadserverclasses"> true </attribute>

<! -- Shocould 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

Bad ideaServerConfiguration 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) Change the JNDI port information D: \ JBoss-New \ Server \ Default \ conf \ jboss-service.xml File

<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) change the RMI port information D: \ JBoss-New \ Server \ Default \ conf \ jboss-service.xml File

<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) change the JMS Port D: \ JBoss-New \ Server \ Default \ deploy \ JMS \ uil2-service.xml File

<Mbean code = "org. JBoss. MQ. Il. uil2.uilserverilservice"

Name = "JBoss. MQ: service = invocationlayer, type = uil2">

<Attribute name = "serverbindport">8093</Attribute>

</Mbean>

5) change the server. xml file under the http port D: \ JBoss-New \ Server \ Default \ deploy \ jboss-web.deployer

<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) Change socket Port 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

</Handlers>

</Attribute>

</Mbean>
7) change the EJB socket Port 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

</Handlers>

</Attribute>

</Mbean>

8) change the configuration of JNDI:/opt/bpo3.0/Server/default/deploy/cluster-service.xml
<Mbean code = "org. JBoss. Ha. JNDI. hanamingservice"
Name = "JBoss: service = hajndi">
<Attribute name = "Port">1200</Attribute>
<! -- Rmiport to be used by the HA-JNDI service once bound. 0 => auto. -->
<Attribute name = "rmiport">1201</Attribute>
<Attribute name = "loadbalancepolicy"> org. JBoss. Ha. Framework. Interfaces. roundrobin </attribute>
</Mbean>
<Mbean code = "org. JBoss. Invocation. uniied. server. unigiedinvokerha"
Name = "JBoss: service = invoker, type = unifiedha">
<Mbean code = "org. JBoss. Invocation. jrmp. server. jrmpinvokerha"
Name = "JBoss: service = invoker, type = jrmpha">
<Attribute name = "serveraddress" >$ {JBoss. Bind. Address} </attribute>
<Attribute name = "rmiobjectport">4647</Attribute>
<! --
<Attribute name = "rmiclientsocketfactory"> Custom </attribute>
<Attribute name = "rmiserversocketfactory"> Custom </attribute>
-->
<Depends> JBoss: service = naming </depends>
</Mbean>

<Mbean code = "org. JBoss. Invocation. Pooled. server. pooledinvokerha"
Name = "JBoss: service = invoker, type = pooledha">
<Attribute name = "numacceptthreads"> 1 </attribute>
<Attribute name = "maxpoolsize"> 300 </attribute>
<Attribute name = "clientmaxpoolsize"> 300 </attribute>
<Attribute name = "sockettimeout"> 60000 </attribute>
<Attribute name = "serverbindaddress" >$ {JBoss. Bind. Address} </attribute>
<Attribute name = "serverbindport">5848</Attribute>
<Attribute name = "clientconnectaddress" >$ {JBoss. Bind. Address} </attribute>
<Attribute name = "clientconnectport"> 0 </attribute>
<Attribute name = "enabletcpnodelay"> false </attribute>
<Depends optional-Attribute-name = "transactionmanagerservice"> JBoss: service = transactionmanager </depends>
<Depends> JBoss: service = naming </depends>
</Mbean>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.