Hi,

> When the officebean is started in one of these programs and then the
> application is closed,
how do you do this closing ? Do you call System.exit() ? You need to call System.exit(), as the office creates non-demon Threads for interprocess communication.

What is your platform ? The tooling is very different on each platform to get to know, which process listens on a socket or why a certain process does not terminate.

Bye,

Joerg
news.gmane.org wrote:
Hello,
I have a complex java application using the officebean.
Almost everything works fine, but I have a problem:
my application is made up of several separated java programs which are launched separately using:
 Runtime.getRuntime().exec(ExecString);

One of these programs uses a socket on port 1893 to exchange some internal control data and commands. When the officebean is started in one of these programs and then the application is closed, the socket hangs and the application does not quit until i terminate the soffice.bin process in the task manager.
I can't post the application because it's really too much complex.

Have you got any ideas? Maybe 1893 is a reserved port for openoffice?
Is there a tool to check which java metod or thread is keeping the socket? The YourKit Java Profiler did not help.

Thank you
Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to