wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Using JBoss Native with a vertical cluster Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Using JBoss Native with a vertical cluster" Watch "Using JBoss Native with a vertical cluster" New topic
Author

Using JBoss Native with a vertical cluster

Christopher Wright
Greenhorn

Joined: Nov 13, 2009
Posts: 2
Hello all,

I am currently involved with a two-node vertical cluster deployment of the JBoss SOA platform, version 4.3. I am trying to use JBoss Native to have my two nodes both running as Services in my Windows 2003 Server environment. I can get both services to install fine, however when the time comes to start them, only the first will start. The second does not start at all, and does not leave a log file.

Does anyone here have experience running a similar configuration using JBoss Native?

Thanks in advance.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Christopher, welcome to Java Ranch!

How did you go about configuring your services? Have you seen this: http://www.jboss.org/community/wiki/JBossNativeWindows

You will need to either bind that app servers to different IP addresses or change the ports so that they do not conflict. And you will need two service.bat files.

By the way, the full explanations of how to set up multiple app servers running as services using JBoss native is given in JBoss in Action, section 15.6.2.


JBoss In Action
Christopher Wright
Greenhorn

Joined: Nov 13, 2009
Posts: 2
Peter Johnson wrote:Christopher, welcome to Java Ranch!

How did you go about configuring your services? Have you seen this: http://www.jboss.org/community/wiki/JBossNativeWindows

You will need to either bind that app servers to different IP addresses or change the ports so that they do not conflict. And you will need two service.bat files.

By the way, the full explanations of how to set up multiple app servers running as services using JBoss native is given in JBoss in Action, section 15.6.2.


Thank you for the welcome, Peter!

I've looked at those instructions, and I've also followed some instructions from a JBoss Support Rep. However, I am only able to get one service running at any one time. I can get both of my nodes to boot successfully if I do it via command-line, but using the installed service will only allow one to start. I am binding each node to its own IP address on the machine, so port conflicts aren't the issue.

I think I've narrowed down the culprit to a lock file which is created by the service.bat script when starting up the service. The batch file creates a lock file, then starts up the service. The lock file is removed after the service is stopped. Since I am unsure of what the purpose this lock file is serving, I am hesitant to just modify the service.bat to create a second lock file for my second node.

I will see about getting my hands on a copy of JBoss in Action for review. Thank you for your time!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Yes, you do have to use multiple lock file names, one for each service. The lock file is there to prevent the service from being started twice. If you look at the examples for the book you will see that we use a different lock file for each service.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using JBoss Native with a vertical cluster
 
Similar Threads
Check the Cluster status before start the cluster using WLST
Jboss windows service
WLST command to restart cluster?
JBoss with JMS server issue.
A question about clustering and jms