How can I use OpenOffice in server mode as a multithreaded service?

前端 未结 6 1277
孤街浪徒
孤街浪徒 2020-12-04 20:13

What is the experience of working with OpenOffice in server mode? I know OpenOffice is not multithreaded and now I need to use its services in our server.
What can I do

6条回答
  •  攒了一身酷
    2020-12-04 20:28

    Vlad is correct about having to run multiple instances of OpenOffice on different ports.

    I'd just like to add that OpenOffice doesn't seem to be stable. We run 10 instances of it in a production environment and set the code up to re-try with another instance if the first attempt fails. This way when one of the OpenOffice servers crashes (or doesn't crash but doesn't respond either) production is not affected. Since it's a pain to keep restarting the servers on a daily basis, we're slowly converting all our documents to JasperReports (see iReport for details). I'm not sure how you're using the OpenOffice server; we use it for mail merging (filling out forms for customers). If you need to convert things to PDF, I'd recommend iText.

提交回复
热议问题