ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <sflo...@nc.rr.com>
Subject Re: Use ANT to stop / start a java service wrapper (JBoss)
Date Tue, 21 Jul 2009 15:11:31 GMT

You can probably also script it using beanshell vs writing an external 
Java application...

On Tue, 21 Jul 2009, David Weintraub wrote:

> Ant can run <java> tasks (which is what you want with JBoss). JBoss
> has a Java API that allows you to start, stop, and deploy in it. You
> can also use the JBoss API to query the server state.
>
> You'll have to write a small Java program to do this for you, but then
> you can run it with the <java> task.
>
> If that's more than you want, you can also use the shell scripts to
> start and stop JBoss using the <exec> commands. However, you'll have
> to wait for enough time for the server to start and stop.
>
> On Mon, Jul 20, 2009 at 4:25 PM, Nafter<HdOude@allshare.nl> wrote:
>>
>> I would like to do some remote deployment.
>> My applications is running within JBoss. This JBoss installation is running
>> under a java service wrapper.
>>
>> The things I would like to do is the following:
>> 1] stop java service wrapper (which will automatically stop the JBoss)
>> 2] redeploy new content (WAR file)
>> 3] start java service wrapper again (which will automaticcally start the
>> JBoss again).
>>
>> How can ANT help me with this? Does somebody know that?
>> Thx.
>> --
>> View this message in context: http://www.nabble.com/Use-ANT-to-stop---start-a-java-service-wrapper-%28JBoss%29-tp24576912p24576912.html
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>
>
> -- 
> David Weintraub
> qazwart@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message