You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kees Snijders <Ke...@discoverylife.co.za> on 2002/11/05 15:56:29 UTC

Question about ServerDeploy

Hi all,

I'd like to use the ServerDeploy task to hot-deploy an ear file containing
an ejbjar and war file to a Weblogic server, but I can't figure out how to
format the component attribute to do this.

This works, deploys both, but only activates the ejbjar:

                        <serverdeploy action="deploy"
source="${dist.dir}/${ear}">

                                    <weblogic application="${project}"

 
classpath="${weblogic.home}/lib/weblogic.jar"                          

                                        server="${deploy.server}"

                                        username="${deploy.user}"

                                        password="${deploy.password}"


                                        component="${ejbjar}:myserver"

                                        debug="true"/>


                        </serverdeploy> 

This deploys both, but activates neither:

                        <serverdeploy action="deploy"
source="${dist.dir}/${ear}">

                                    <weblogic application="${project}"

 
classpath="${weblogic.home}/lib/weblogic.jar"                          

                                        server="${deploy.server}"

                                        username="${deploy.user}"

                                        password="${deploy.password}"


                                        debug="true"/>


                        </serverdeploy> 

 

I'm hoping there is some sort of nesting behaviour that allows specifying
multiple components.

 

I'm using Weblogic 7 and Ant 1.5.1

Thanks,

Kees Snijders