On Thu, 27 Mar 2008 14:48:28 -0700 (PDT), zamba
<CRISTIAN_FERRERO@hotmail.com> wrote, quoted or indirectly quoted
someone who said :
>this is because i need to call an external program from my class to
>convert xml to pdf , im doing this with a class which make run of this
>thread class and first one is called about 30.000 times (one for each
>xml), but the process is too slow...i suppouse that proc.waitFor and
>while...etc..can do my process slow, but i didn't find another wy to
>call an external program and test if worked...can anybody help me...tks
If you have some control over the source code for the other program
you can:
1. have it communicate via sockets, files, a database... and stay
resident..
2. create a JNI hook to it.
3. rewrite it in Java.
4. write it so that most of it is a DLL that stays resident. You can
then reload it quickly.
If you have no control, you can put it on a RAMDRIVE to help it load
faster.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com