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?
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.
posted 15 years ago
Oh, and you can crank-up and shut-down the server right from Eclipse with the aformentioned plug-in.