If you're using Ant 1.6.x, you should be able to start JBoss using the exec
task. Something like:
<exec dir="/path/to/jboss-3.2.2/bin" executable="bash" spawn="true">
| <arg line="run.sh"/>
| <arg line="-c default"/>
| </exec>
Stopping it would just be something like so:
| <arg line="shutdown.sh"/>
| <arg line="--server jnp://localhost:1099"/>
|
You could wait for it to be started by using waitfor task:
| <waitfor maxwait="5" maxwaitunit="minute" checkevery="500">
| <http url="http://localhost:8080/jmx-console"/>
| </waitfor>
|
I would write a custom JSP page that checked to make sure everything you need
was up (and return a 500 if not), unless someone knows of a call you could
fabricate (like with the get task) to html adaptor to see if the server is
'done' starting.
To look for errors on startup or in log, you're best bet is to find/write a
task that greps your logfile for errors.
HTH,
Mike
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854230#3854230
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854230
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user