| View previous topic :: View next topic |
| Author |
Message |
hongcheng_guo Newbie

Joined: 29 Jun 2006 Posts: 1
|
Posted: Thu Jun 29, 2006 7:39 pm Post subject: please,help me |
|
|
I use OpenOffice.org in a java-web program.I must be sure to have OpenOffice.org always listening on port 8100 before starting the web program. How to do it?
OS: windowsXP
Looking forward to the answer ,thank you !!! |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3532 Location: Hamburg, Germany
|
Posted: Thu Jun 29, 2006 10:02 pm Post subject: Re: please,help me |
|
|
| hongcheng_guo wrote: | | I use OpenOffice.org in a java-web program.I must be sure to have OpenOffice.org always listening on port 8100 before starting the web program. How to do it? |
You never can be sure of an always listening OOo! Never. If you use OOo for some time for example to generate PDF documents, it tends to crash. That has been reported manifold in this form. Regardless of the programming language you use to work with OOo.
To get around this problem, my Java application always checks to ensure that OOo is running. If my Java application stumbles over an exception during working with OOo it first tries to kill OOo through usage of a script called from Runtime.exec() and then restart OOo again using another script called from Runtime.exec().
With kind regards
hol.sten |
|
| Back to top |
|
 |
|