• 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

JBoss 4.x default node ?

 
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to change(which file) the configuration for JBoss 4.x production node to default node ?
 
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
I am going to assume that you mean you are running JBoss EAP, which runs the 'production' configuration by default and you would like to run the 'default' configuration instead. Well, unless you want to recompile EAP, you will need to start the app server using the -c option:

run -c default

or you could set the jboss.server.name sys prop:

run -Djboss.server.name=default

You could create a script that contains one of those lines and just run that script.

Just in case you are interested, the 'production' config name is hard-coded in the file jboss-eap-4.3-src/jboss-as/system/src/main/org/jboss/system/server/ServerConfig.java, line 298:

 
kri shan
Ranch Hand
Posts: 1491
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter Johonson, My JBoss version JBoss 4.3 CP02. I created new batch file and tried both the options run -c default / run -Djboss.server.name=default. I run this batch file before starting the JBoss. But still JBoss is starting in Production node. Am i missing something ?
 
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
That should work. Please post the console output, everything from the command you entered through the "Started in xxx seconds" message.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic