1分6合

核心企业

CORE ENTERPRISE
当前位置:网站1分6合>软件开发 > 正文内容

一台服务器上运行两个EOS for JBOSS实例

 

本文将介绍当在同一台服务器上运行两个EOS for JBOSS实例的时候,需要修改哪些配置文件

【适用范围】
EOS5.0及以上版本 for JBoss

【问题描述和定位】
如果一台机器运行两个EOS for JBoss实例时,因为都使用了相同的端口,当启动了一个实例后,再启动另外一个实例时,就会报端口已被占用的异常。

【解决方案和步骤】
通过修改JBoss和EOS的端口配置可以解决端口占用的问题。

1、修改jboss-3.2.5\server\default\conf\jboss-service.xml中的1098,1099,4444,4445,8083端口。端口配置在配置文件中位置如下:
...
<mbean code="org.jboss.web.WebService" name="jboss:service=WebService">
<attribute name="Port">8083</attribute>
...
<mbean code="org.jboss.naming.NamingService" name="jboss:service=Naming">
...
<attribute name="Port">1099</attribute>
...
<attribute name="RmiPort">1098</attribute>
...
<mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker" name="jboss:service=invoker,type=jrmp">
<attribute name="RMIObjectPort">4444</attribute>
...
<mbean code="org.jboss.invocation.pooled.server.PooledInvoker" name="jboss:service=invoker,type=pooled">
...
<attribute name="ServerBindPort">4445</attribute>
...

2、jboss-3.2.5\server\default\conf\jboss-minimal.xml中的1099端口,注意要改成跟jboss-service.xml中的1099一样的。端口配置在配置文件中位置如下:
...
<mbean code="org.jboss.naming.NamingService" name="jboss:service=Naming">
...
<attribute name="Port">1099</attribute>
</mbean>
...

3、jboss-3.2.5\server\default\deploy\jbossweb-tomcat50.sar\server.xml中8080,8081端口。端口配置在配置文件中位置如下:
...
<Service name="jboss.web" className="org.jboss.web.tomcat.tc5.StandardService">
<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" address="${jboss.bind.address}" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="GBK"/>
...
<Connector URIEncoding="GBK" enableLookups="true" keystoreFile="keystore" port="8081" redirectPort="8443" scheme="https" secure="true" sslProtocol="TLS"/>
...

3、jboss-3.2.5\server\default\deploy\jms\uil2-service.xml中的8093端口。端口配置在配置文件中位置如下:
...
<attribute name="ServerBindPort">8093</attribute>
...

4、eosserver\config\eosconfig.xml中的1099,30614端口,注意1099端口要改成跟jboss-service.xml中的1099端口一样的。端口配置在配置文件中位置如下:
...
<group name="DBConnect">
<configValue key="dbType">sqlserver2000</configValue>
<configValue key="context-initial-factory">org.jnp.interfaces.NamingContextFactory</configValue>
<configValue key="dbprovider">jnp: //localhost:1099</configValue>
...
<module name="cluster">
<group name="config">
<configValue key="nodeList">127.0.0.1</configValue>
<configValue key="remoteCallerPort">30614</configValue>
</group>
</module>
...


【备注】
1、在同一台机器上做JBoss的负载均衡时,修改配置文件不能参照此文档。
2、当JBoss的1099端口改变时,eosconfig.xml里配置的1099端口也要跟着改变。
3、如果通过EOS管理控制台中的“构件包信息配置”给构件包配置数据源,注意里面的1099端口也要做相应的修改。

彩88-1分6合 大发11选5-1分6合 腾讯三分彩-1分6合 彩乐园-1分6合 彩天下-1分6合 万家彩票-1分6合 快彩网-1分6合