Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Urgent help-Regarding startup and showdown script for jboss

Urgent help-Regarding startup and showdown script for jboss

2005-06-08       - By Srikrishna_Parthasarathy@(protected)
Reply:     1     2     3  



The following script start and stops JBOSS . But the target jboss.start
is successful before the server is actually started. Is there a way to
make the target Successful only when it is actually started .

Eager to receive ideas



Eager to receive the newgroup comments.



<project name="JBOSSSCRIPT" default="jboss.start" basedir=".">



<property name="jdk.home" value="/usr/java" />

<property name="jboss.home" value="/opt/jboss" />



<property name="jboss.host" value="dbaweb" />



<property name="jboss.port" value="1100" />

<property name="jboss.app.port" value="9080" />



<property name="deploy.configuration" value="BaseServer" />



<property name="deploy.configuration.dir"
value="/opt/jboss/server/${deploy.configuration}/conf" />





<target name="jboss.start" description="Start the JBoss server.">

<java dir="${deploy.configuration.dir}" classname="org.jboss.Main"
fork="true" spawn="true">

<arg line="-c ${deploy.configuration}"/>

<jvmarg value="-Xms32m"/>

<jvmarg value="-Xmx200m"/>

<classpath>

<pathelement path="${jboss.home}/bin/run.jar"/>

<pathelement path="${jdk.home}/lib/tools.jar"/>

</classpath>

</java>

</target>



<target name="jboss.stop" description="Stop the JBoss server.">

<echo>${deploy.configuration.dir}</echo>

       <java dir="${deploy.configuration.dir}"
classname="org.jboss.Shutdown" fork="false">

           <arg
line="-Djava.naming.provider.url=jnp://${jboss.host}:${jboss.port}" />

           <classpath>

               <pathelement path="${jboss.home}/bin/shutdown.jar" />

           </classpath>

       </java>

</target>



</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.