• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using JBoss Native with a vertical cluster

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Christopher Wright
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic