• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Automating JBoss deployment

 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not currently using JBoss but since I just recently had to set up yet another build script for deploying a web application on Tomcat, I'm curious what would my options be if I wanted to do the same with JBoss.

In other words...
1) Are there Ant tasks for deploying web apps on JBoss as part of an automated build?
2) Are there other (command line) tools for doing that?
3) Would these tools/tasks be suitable for deploying on a remote JBoss instead of a locally running instance?

For Tomcat, I ended up using Ant's <exec/> task to run the provided "startup" and "shutdown" scripts, accompanied with Ant's conditional stuff for detecting whether the server is already running or not, etc. That did seem like a bit of a hack, though.

I did take a look at Cargo (version 0.5), for example, but couldn't quite get that working properly. How's the JBoss support of Cargo?

Just curious. Thanks.
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you get the JBoss plug-in for Eclipse, you can define "packaging", then you can deploy to whatever server you want (across the network, if you have one). I do that because my development machine bogs down with Eclipse, JBoss and MySql all running!! The packaging bit just writes an ant script, I think.

--Dale--
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, and you can crank-up and shut-down the server right from Eclipse with the aformentioned plug-in.
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ant does have JBoss tasks, but I honestly have never used them. Deploying in JBoss is a simple copy operation.

I don't know the status of the JSR 88 (remote deployment) implementation. It may be done now, but it's not something I would ever really use, so I haven't been watching it.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Date. I'm already aware of MyEclipseIDE being able to do all sorts of stuff with regards the bouncing the server--the same functionality offered by many other plugins as well.

However, I'm looking for "headless" automation: something that can be done with a single cron command instead of having a human being click buttons on a GUI. That is what I mean by automation.
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic