This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes What is used for Deployment Scripting in JBoss ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "What is used for Deployment Scripting in JBoss ?" Watch "What is used for Deployment Scripting in JBoss ?" New topic
Author

What is used for Deployment Scripting in JBoss ?

Mikhael Jenings
Greenhorn

Joined: Apr 14, 2009
Posts: 25
Hello,

Wanted to know what is used for Deployment Scripting in JBoss ?
More specifically, what scripting language is used to automate tasks such as,
- server creation
- startup/shutdown
- datasource creation/deletion/etc...
- jms creation/deletion/etc...

(For example, WebLogic uses Python/Jython.)

And, also can you also please suggest a good reference for (beginning) JBoss server administration for a JEE Developer ?


Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

There is none because each of these tasks are fairly simple:

Server creation: copy server/xxx as server/yyy
Startup: bin/run.sh
Shutdown: CTRL-C or bin/shutdown.sh
*Datasource creation: see sample *-ds files in docs/examples/jca - modify for your database, copy to server/xxx/deploy
*Datasource deletion: remove xxx-ds.xml from server/xxx/deploy
*Destination creations/deletion: create *-service.xml file with destinations, place-into/remove-from server/xxx/deploy


JBoss In Action
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Mikhael,

I put my application servers into SVN and write some shell scripts around them for the basic live cycle tasks (deploy, start, stop).

The use of SVN allows me to diff a running server against the basic configuration. It also allows me to assert that key files are identical across all deployments (test, acc and production).


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

I guess I should have mentioned that I use Ant for my scripting needs, which includes setting up a server configuration (aka domain) and deploying various artifacts. You can see the scripts as part of the source code download for JBoss In Action (link below).
Mikhael Jenings
Greenhorn

Joined: Apr 14, 2009
Posts: 25
Thank you.

If anyone seeing this post has other ways of doing things, please share.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is used for Deployment Scripting in JBoss ?