kintomiko / jodconverter

Automatically exported from code.google.com/p/jodconverter
0 stars 0 forks source link

Default to named pipes rather than sockets for OOo connections? #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
With named pipes we don't need to take up TCP ports.

But named pipes require loading a native library, so only make them the
default if there's a way to have them work without manually setting
java.library.path when starting Java.

Original issue reported on code.google.com by mirko.na...@gmail.com on 18 Jan 2009 at 8:35

GoogleCodeExporter commented 8 years ago
With OOo 3.0 the required native libs are in ure/lib, so e.g. on Linux the JVM 
needs
to be started with:

  -Djava.library.path=/opt/openoffice.org/ure/lib

Unfortunately the only way to manipulate java.library.path at runtime is by 
using
reflection in a way that is probably not portable across JVMs

  http://forums.sun.com/thread.jspa?threadID=707176

So I guess we'll need to keep using sockets by default, but maybe recommend 
using
pipes in the documentation where possible.

Original comment by mirko.na...@gmail.com on 25 Jan 2009 at 2:04

GoogleCodeExporter commented 8 years ago

Original comment by mirko.na...@gmail.com on 25 Jan 2009 at 4:19