Thanks, alan.

I've used Ant in the past, mostly to compile things like Axis,
JXPath, UDDI4J, etc from the command line.  How would I
run this Ant script from within a Java program?

For example, I run Java2WSDL by instantiating an Emitter
and invoking Emitter.emit() from within my Java program
(as opposed to running it as a command line task).  Is
there a way I can do the same with Ant?

Thanks in advance.

Steve Pannier

> try this (ant script):
>
>     <java classname="org.apache.axis.utils.Admin"
> classpath="${axis.classpath}:${src.build}"
> dir="${CATALINA_BASE}/webapps/axis/WEB-INF" fork="true">
>        <arg line="server"/>
>         <arg path="deploy.wsdd"/>
>     </java>
>
> I don't know if this requires axis to be restarted but at least it
doesn't
> require it to be running when you deploy.
>
> alan
>
> -----Original Message-----
> From: Steve Pannier [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 19, 2003 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: Programmatic deployment of services
>
>
> Up to this point I've been using the following manual steps to
> deploy my services into the Axis web app:
>
> 1) Make sure Tomcat is running.
> 2) Copy service class files into Axis web app classes directory.
> 3) Run Admin client to deploy the wsdd file.
>
> I now want to do this deployment programmatically (i.e. via
> the click of a mouse from a Java-based GUI).
>
> Questions:
>
> 1) Is there a recommended way of deploying a service from a
>    Java program?
>
> 2) Can I do the deployment if my servlet container (Tomcat) is
>    not running?
>
> 3) Does Admin client have the capability to deploy the service
>    class files to the Axis web app?  Or do I need to copy them in
>    myself?
>
> 4) Will I be able to recognize success vs failure of the deployment?
>
>
> Regards.
>
> Steve Pannier
>


Reply via email to