简体   繁体   English

在同一台机器上设置多个JBoss实例

[英]Setting up multiple instances of JBoss on the same machine

I've found next page in JBoss Community - http://www.jboss.org/community/wiki/ConfigurePorts 我在JBoss社区中找到了下一页-http: //www.jboss.org/community/wiki/ConfigurePorts

There is next text: 接下来是文字:


Edit server/default/conf/bootstrap/bindings.xml 编辑server / default / conf / bootstrap / bindings.xml


But I do not see file bindings.xml in JBoss 5.1.0 GA. 但是我在JBoss 5.1.0 GA中看不到文件bindings.xml。

Does anyone know - what files should be changed in order to hav ability to start several instances of JBoss 5.1 on the same machine? 有谁知道-为了能够在同一台机器上启动多个JBoss 5.1实例,应该更改哪些文件?

Try with the following steps: 请尝试以下步骤:

1) Copy the default folder with new name: instance name 1)使用新名称复制默认文件夹:实例名称

2) In jboss-service.xml Uncomment the ServiceBindingManager mbean and change the ServerName to ports-01 or 02 or 03 eg:ports-01 and ports-01/02/03 configuration should be there in sample-bindings.xml(present in docs/examples/binding-manager) And make the changes in all the ports mentioned under ports-01/02/03 tags, So that ports will not get conflict. 2)在jboss-service.xml中,取消注释ServiceBindingManager mbean,并将ServerName更改为ports-01或02或03,例如:samples-bindings.xml中应包含ports-01和ports-01 / 02/03(存在于docs / examples / binding-manager)并在ports-01 / 02/03标记下提及的所有端口中进行更改,以使端口不会发生冲突。 Remember the server will run on the binding port like 8080/8180/8182. 请记住,服务器将在绑定端口(如8080/8180/8182)上运行。

from cmd promt go to the bin folder and run the instances with cmd: 从cmd promt转到bin文件夹并使用cmd运行实例:

run -c instancename 运行-c实例名

Thanks 谢谢

Ankit Adlakha 安基·阿德拉哈(Ankit Adlakha)

The Release Notes reference bindings.xml but it isn't there in the jdk6 or vanilla version. 发行说明参考bindings.xml,但在jdk6或vanilla版本中不存在。

I looks like the file has been moved and the structure modified. 我看起来文件已被移动并修改了结构。 It now lives in: 现在它位于:

${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml $ {JBOSS_HOME} /server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

Use the script that I wrote here . 使用我在这里编写的脚本 I requires you download libs from the YAJSW project, but it will run multiple instances straight out of the box (as registered windows services) if you use one copy of my script per instance. 我要求您从YAJSW项目下载库,但是如果每个实例使用一个脚本副本,它将立即运行多个实例(作为注册的Windows服务)。

If you're still stuck and can't find this file (it's in 5.0.1) then perhaps the defaults work for you. 如果您仍然卡住并且找不到此文件(在5.0.1中),那么默认设置可能对您有用。

Ie I've set up multiple instances of JBoss 5.0.1 on one machine, using different ports.The 5.0 clustering guide explains how to do this for various scenarios. 即我已经在一台机器上使用不同的端口设置了JBoss 5.0.1的多个实例。5.0集群指南介绍了如何在各种情况下执行此操作。 For example: See "section 1.1.2: Scenario 3: Two Nodes on a Single, Non-Multihomed, Server". 例如:请参阅“第1.1.2节:方案3:单个非多宿主服务器上的两个节点”。 https://www.jboss.org/community/wiki/JBossAS5ClusteringGuide https://www.jboss.org/community/wiki/JBossAS5ClusteringGuide

I didn't specify ports directly - but specified different pre-installed binding sets: eg via -Djboss.service.binding.set=ports-default and -Djboss.service.binding.set=ports-01 and -Djboss.service.binding.set=ports-02 ... 我没有直接指定端口-而是指定了不同的预安装绑定集:例如,通过-Djboss.service.binding.set = ports-default和-Djboss.service.binding.set = ports-01和-Djboss.service。 binding.set =端口-02 ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM