Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Separate "servers"

 
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to have to explain in JRun terms the first part and then ask how close this can be accomplished in JBoss. JRun allows multiple servers to be set up whereby the directories look like this JRun/servers/server1/default-ejb/default-war/..., JRun/servers/server2/....

How can I accomplish the same thing here? Whereby one server might be accessed like mycomputer:8011/ and the other like mycomputer:8022/. Can this be done using (saw in one doc) nodes or is there another way that should/can be taken? Any helpful advice/info/links to other docs on how to set it up this way would be appreciated. Thanks in advance.

RH
 
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically you have the same thing

in the $JBOSS-INSTALL-DIR\server\ directory is where you put your server configurations. So you can copy the default directory and give it another name. so instead of just calling the run.bat you call "run -c myNewDirName"

The big thing with these "nodes" is making sure the port numbers are not being "shared" you can use the Service Binding Manager to handle that for you. For that you need to go to jboss.org to read up on how to set this up. It is not that difficult.

Mark
 
Rob Hunter
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Thanks for the response. If I copy the default directory into one (let's say serv1) I then have to change the port numbers within the new server directory. Do you happen to have a listing of where the port number needs to be changed? I've searched JBoss' site and keep finding a lot of (I think might be) unrelated information for the Service Binding Manager. Do I need to install this separately? I couldn't find anything telling me that it needed to be installed. If you happen to have additional info related to this or some good links could you pass them by me. Thanks so much for the response and help.

RH
 
Rob Hunter
Ranch Hand
Posts: 837
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark/All,
I thought the Service Binding Manager was a separate application first off. I've uncommented the binding manager section in both the default server and the one I created (in the C:\JBoss\server\xxx\conf\jboss-server.xml). In the default server, I set the binding manager to <attribute name="ServerName">ports-default</attribute> and the one I copied to <attribute name="ServerName">ports-01</attribute>. I had JBoss set up to run as a service using JavaService before attempting any of this. I stopped the JBoss service after making these changes. Before I used to be able to access JBoss' welcome page using localhost:8080/. I re-started the JBoss service and now I get nothing by typing it in. What other steps do I need to perform? I appreciate the help and post this in the case I can't find anything searching or in hopes someone has a response quicker. Thanks again in advance.

RH
 
Mark Spritzler
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, You have found the right thing. ServiceBinding Manager is the way to go. Actually, you can have just the second server uncomment the binding manager, and keep the other commented out. So the one commented out would use the default ports anyway.

You do have both servers running right?

Mark
 
But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!