Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ant task for running two java classes in different jvms

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi Everybody

I have a requirement like

1.one class with one jvm finish some portion of task
2.anohter class with another jvm finish remaining portion of task [this should be start after first jvm task finished ]

how to achieve this one in ant.
i tried by using fork true and spawn="true" for both jvms ,both started and continuing even first java class not finished that task yet becuase of that second class not working properly to finish that task

can any one help me on this by using ant tasks is it possible

Examples:
1 one web application deployed in tomcat and becuase of load on startup tag some classes loaded sucessfully and some initial database operations will happen ,then only the web client will start and send request to tomcat web resource,we need all these as automation with ant tool
2. one rmi server will start in one jvm and will setup the initial operations then only rmiclients will start and requesting server ,these task should be handled with ant tasks







Regards
Suresh

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please don't post the same question multiple times: respond with the information requested of you in your original post.

https://coderanch.com/t/482966/Ant-Maven-Other-Build-Tools/ant-task-running-two-java
    Bookmark Topic Watch Topic
  • New Topic