File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBoss 4.x  default  node ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 4.x  default  node ?" Watch "JBoss 4.x  default  node ?" New topic
Author

JBoss 4.x default node ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
How to change(which file) the configuration for JBoss 4.x production node to default node ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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:



JBoss In Action
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
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
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

That should work. Please post the console output, everything from the command you entered through the "Started in xxx seconds" message.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JBoss 4.x default node ?
 
Similar Threads
What's the JBoss 5.x EAP default web console password?
JBOssMQ
How to Set JNDI on Classpath in Linux
What's your Container?
Xalan XSLTC in JBoss