Hi Folks, The following tasks (and supporting files) add the needed scripting and administration features for iPlanet Application Server 6.0 The following tasks allow for: * J2EE application deployment and undeploy (ear, jar and war, resource). * Control of the application server process (local and remote). Kill, stop, start and restart, with appropriate pausing feature (need to give application server time to breath between commands).
Cheers, Martin Gee Submitted files ************************************************** iPlanetTasks.htm (Good docos) org.apache.tools.ant.taskdefs.optional.iplanet.Controllable.java org.apache.tools.ant.taskdefs.optional.iplanet.Deployable.java org.apache.tools.ant.taskdefs.optional.iplanet.IASControlTask.java org.apache.tools.ant.taskdefs.optional.iplanet.IASDeployTask.java org.apache.tools.ant.taskdefs.optional.iplanet.IASInstance.java org.apache.tools.ant.taskdefs.optional.iplanet.IASInstanceAble.java org.apache.tools.ant.taskdefs.optional.iplanet.IASUnDeployTask.java
Deployable.java
Description: Binary data
Controllable.java
Description: Binary data
IASControlTask.java
Description: Binary data
IASDeployTask.java
Description: Binary data
IASInstance.java
Description: Binary data
IASInstanceAble.java
Description: Binary data
IASUnDeployTask.java
Description: Binary data
ias_deploy
Description
Wraps the iasdeploy command-line tool. Makes it nice and
easy to deploydifferent types Parameters
Elements
Instance
Example
1) When you don't specify an iAS instance to deploy
to, thedeploy task will <ias_deploy> <resource name="database/sampleDS.xml" /> <application name="${builddir}/${name}.ear" /> <module name="${builddir}/${name}EJB.jar" /></ias_deploy> 2) Deploying an application, module and a resource to
the iAS instanceon host 'moby'. <ias_deploy> <instance user="admin" password="hoser" host="moby" port="10817" /> <resource name="database/sampleDS.xml" /> <application name="${builddir}/${name}.ear" /> <module name="${builddir}/${name}EJB.jar" /></ias_deploy> 3) Notice that a resource, module and application can
have a specific instance to deploy to. In this <ias_deploy> <instance name="myIAS1" /> <resource name="database/sampleDS.xml" /> <instance user="admin" password="hoser" host="moby" port="10817" /> <resource /> <application name="${builddir}/${name}.ear" /> <module name="${builddir}/${name}EJB.jar" /></ias_deploy> ias_undeploy
Descritpion
Wraps the iasdeploy command-line tool. Makes it nice and
easy to undeploy different types Parameters
Elements
Instance
Example
This example will undeploy the supplied war module and ear
application <ias_undeploy> <module name="${builddir}/${name}.war" /> <application name="${builddir}/${name}.ear" /></ias_undeploy> ias_control
Descritpion
Wraps the iascontrol command-line tool. Makes it nice and
easy to locally or remotely control Parameters
Elements
The following elements correspond to actions
(commands) performed by the iascontrol command-line tool.
Controllable Parameters
Instance
Example
This example will undeploy the supplied war module and ear
application 1) Kills the local iAS instance (including the kas process) <ias_control> <kill /> </ias_control> 2) Restarts a named iAS instance which has been
registered under iASAT (administration tool). Note <ias_control> <restart pause="20"> <instance user="admin" password="hoser" host="moby" port="10817" /> </restart> </ias_control> 3) Starts a local iAS instance, pauses for 10 seconds
and then stops the instance. NOTE: this leaves the <ias_control> <start pause="10"/> <stop/> </ias_control> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
