ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rosmon_Sid...@i2.com
Subject running processes in the backgound
Date Tue, 17 Sep 2002 07:35:51 GMT
Hello all,
I'm using the following target to start the weblogic and once it is up to 
start the background processes. This is being run on an NT4 machine.

        <target name="startweblogic">
                <parallel>
                             <!--<echo 
message="Debug:E:/wl610sp2/wlserver6.1/lib/weblogic.jar"/>-->
                             <java classname="weblogic.Server" fork="yes" 
dir="E:\wl610sp2\wlserver6.1">
                                 <classpath>
                                   <pathelement 
path=".;E:\wl610sp2\wlserver6.1\lib\CR058352_61sp2.jar;E:\wl610sp2\wlserver6.1\lib\weblogic_sp.jar;E:\wl610sp2\wlserver6.1\lib\weblogic.jar;E:\xjs612b7\jar\jaguar.jar;E:\xjs612b7\jdbc\db2\db2java.zip;E:\xjs612b7\javamail\mail.jar;E:\xjs612b7\jaf\activation.jar;E:\xjs612b7\admin\configs;E:\xjs612b7\admin\configs\locale;E:\xjs612b7\jpython\jpython.jar;E:\cx522server\properties;E:\cx522server\jars\log4j.jar;E:\cx522server\jars\cx.jar;E:\cx522server\jars\i2uitaglib.jar;E:\xjs612b7\jar\cis.jar;E:\xjs612b7\jar\cis-sso.jar;E:\xjs612b7\jar\connector.jar;E:\xjs612b7\jar\jaas.jar;"/>
                                 </classpath>
                                 <jvmarg value="-hotspot"/>
                                 <jvmarg value="-ms64m"/>
                                 <jvmarg value="-mx64m"/>
                                 <jvmarg value="-Dfile.encoding=UTF-8"/>
                                 <jvmarg 
value="-Djava.library.path=E:/wl610sp2/wlserver6.1/lib;E:/wl610sp2/wlserver6.1/bin;"/>
                                 <jvmarg 
value="-Dweblogic.Domain=mydomain"/>
                                 <jvmarg 
value="-Dweblogic.Name=myserver"/>
                                 <jvmarg value="-Dbea.home=E:/wl610sp2"/>
                                 <jvmarg 
value="-Dweblogic.management.password="/>
                                 <jvmarg 
value="-Dweblogic.ProductionModeEnabled=true"/>
                                 <jvmarg 
value="-Djava.security.policy==E:/wl610sp2/wlserver6.1/lib/weblogic.policy"/>
                             </java>
                        <sequential>
                                <waitfor maxwait="60" 
maxwaitunit="second">
                                    <socket server="localhost" 
port="7001"/>
                                </waitfor>
                                <antcall target="startbgprocs"/>
                        </sequential> 
               </parallel>
       </target>

        <target name="startbgprocs">
                <parallel>
                        <antcall target="startStaging"/>
                        <antcall target="startValidating"/>
                        <antcall target="startApproval"/>
                        <antcall target="startLoading"/>
                        <!--<antcall target="startArchiveStaging"/>-->
                        <!--<antcall target="startBatchUpload"/>-->
                        <!--<antcall target="startDownloadStaging"/>-->
                        <!--<antcall target="startExporting"/>-->
                </parallel>
        </target>

Each of the background processes is started with a target exactly like the 
one below:
<target name="startApproval">
     <java classname="com.i2.cx.servers.approvalProcess.ApprovalProcess" 
fork="yes" dir="E:\cx522server\backoffice">
         <classpath>
           <pathelement 
path=".;E:\cx522server\jars\saxon.jar;E:\cx522server\jars\xerces.jar;E:\wl610sp2\jdk131\jre\lib\rt.jar;E:\wl610sp2\wlserver6.1\lib\weblogic.jar;E:\cx522server\jars\jaguar.jar;E:\cx522server\properties;E:\cx522server\jars\cx.jar;E:\xjs612b7\jar\jaguar.jar;E:\xjs612b7\jdbc\db2\db2java.zip"/>
         </classpath>
         <jvmarg value="-DPROP_HOME=E:\cx522server\properties"/>
         <jvmarg value="-Dfile.encoding=UTF-8"/>
     </java>
</target>

When I use the following to shutdown the background processes and the 
weblogic, however the ant process is not exited!!
(meaning the cursor does not return to the prompt.) The processes are all 
shutdown and the weblogic is also shutdown.

        <target name="stopbgprocs">
                <parallel>
                        <antcall target="stopStaging"/>
                        <antcall target="stopValidating"/>
                        <antcall target="stopApproval"/>
                        <antcall target="stopLoading"/>
                        <!--<antcall target="stopArchiveStaging"/>-->
                        <!--<antcall target="stopBatchUpload"/>-->
                        <!--<antcall target="stopDownloadStaging"/>-->
                        <!--<antcall target="stopExporting"/>-->
                </parallel>
        </target>

Any guesses as to why it is happening...??

Regards,
Rosmon Sidhik


-----------------------------------------------------------------------------------------------------
It doesn't matter how many say it cannot be done or how many
people have tried it before; it's important to realize that whatever
you're doing, it's your first attempt at it.
-----------------------------------------------------------------------------------------------------
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message