This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes jboss jms directory and -c <config-name> syntax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss jms directory and -c <config-name> syntax" Watch "jboss jms directory and -c <config-name> syntax" New topic

jboss jms directory and -c <config-name> syntax

Ziyang Zhang
Ranch Hand

Joined: Jul 17, 2010
Posts: 47
I am learning JBoss basics from An old, but good simple tutorial. Hope this would help others like me. There is a paragraph:

You can add your own configurations too. The best way to do this is to copy an existing one that is closest to your needs and modify the contents. For example, if you weren’t interested in using messaging, you could copy the default directory, renaming it as myconfig, remove the jms subdirectory and then start JBoss with the new configuration.
run -c myconfig

I have two questions:
1. Is this the correct jms path (\jboss-4.0.2\server\default\deploy\jms) mentioned in the article? Why remove the jms? What's the function of jms?
2. I looked the start script, and I didn't find -c <config-name> syntax. So where is it, so that I can run customized configuration?

Enjoy life!
Peter Johnson

Joined: May 14, 2008
Posts: 5852

1) Yes, that is the correct directory. JMS is Java Message Service. Unless you plan on writing messing clients or Message-Driven Beans (MDB), you don't need it.

2) The -c, and other command options (to see them all, enter: run -h), are all handled by Java code.

By the way, why are you using 4.0.2? That is an ancient version. If you are new to JBoss AS, you should start with 5.1.0.GA.

JBoss In Action
I agree. Here's the link:
subject: jboss jms directory and -c <config-name> syntax
It's not a secret anymore!