如何在一台机器上运行多个JBoss实例? [英] How to run multiple instances of JBoss in a one single machine?

查看:96
本文介绍了如何在一台机器上运行多个JBoss实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在一台机器上运行多个(超过4个)JBoss服务器实例. 我正在使用JBoss 4.2.3 GA.

I need to run multiple(more than 4) instances of JBoss server on a single machine. I am using JBoss 4.2.3 GA.

推荐答案

我找到了答案.我们必须将 jboss-service.xml 配置为在同一台计算机上运行多个实例.

I found the answer. We have to configure the jboss-service.xml to run multiple instances in the same machine.

我们可能需要保持与 JBOSS_HOME \ Serve r下相同的默认"实例.

We may need to keep the same "default" instance same as it is under the JBOSS_HOME\Server.

我们必须在 JBOSS_HOME \ Server 下创建另一个名为"instance2"的文件夹. 将所有内容从 JBOSS_HOME \ Server \ default 复制到此新创建的文件夹.

We have to create another folder say "instance2" under JBOSS_HOME\Server. Copy all the contents from JBOSS_HOME\Server\default to this newly created folder.

现在转到 JBOSS_HOME \ Server \ instance2 目录下的goto conf文件夹. 编辑 jboss-service.xml . 在此配置文件中搜索mbean code="org.jboss.services.binding.ServiceBindingManager".

Now goto conf folder under JBOSS_HOME\Server\instance2 directory. Edit the jboss-service.xml. Search for mbean code="org.jboss.services.binding.ServiceBindingManager" in this configuration file.

默认情况下,此xml标记被注释.我们必须取消注释它,并将值 ports-00 更改为 ports-01 .

By default this xml tag is commented. We have to un comment it and change the value ports-00 to ports-01.

然后启动此instance2 jboss实例.我们可以使用端口号8180来访问此应用程序.

Then start this instance2 jboss instance. We can access this application by using the port number 8180.

通过这种方式,我们最多可以进行3个实例.

We can go for at maximum of 3 instances with this way.

要运行更多代码,我们必须在其中添加更多运行代码 JBOSS_HOME \ docs \ examples \ binding-manager \ sample-bindings.xml .

To run more than this we have to add some more running tags in JBOSS_HOME\docs\examples\binding-manager\sample-bindings.xml.

这篇关于如何在一台机器上运行多个JBoss实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆