https://bz.apache.org/ooo/show_bug.cgi?id=126148

--- Comment #5 from Ariel Constenla-Haile <[email protected]> ---
(In reply to jvchbabu from comment #4)
> > > Both the ports are listening on their respective ports but surprisingly 
> > > the
> > > process associated to them is one.
> > 
> > That's because OpenOffice is using the same user profile in both cases.
> > You must specify a different user directory. For example:
> > 
> > ~]$ openoffice4 -env:UserInstallation=file:///tmp/test_aoo1 > /dev/null 2>&1
> > &
> > [1] 9743
> > ~]$ openoffice4 -env:UserInstallation=file:///tmp/test_aoo2 > /dev/null 2>&1
> > &
> > [2] 9820
> > 
> > Just use -env:UserInstallation=file://<path to separate user dir>
>
>  Starting the open office services with different user profiles will land us
> in problems while restating the open office services through java
> process(programatic restart of OO with Java), as open office services and
> java process should be owned by the same user.

No, as long as you run the commands that start OpenOffice as the same user, the
processes are owned by the same user; it's not about different Windows user
profiles, it's just about different OpenOffice's user profiles owned by the
same Windows user.

Try the suggestion in Comment 3. Just open cmd.exe and type both commands.
Example:

C:\Users\ariel>"C:\Program Files (x86)\OpenOffice 4\program\soffice.exe"
"-env:UserInstallation=file:///C:/Users/ariel/aoo_1"
"-accept=socket,host=localhost,port=8001;urp"

C:\Users\ariel>"C:\Program Files (x86)\OpenOffice 4\program\soffice.exe"
"-env:UserInstallation=file:///C:/Users/ariel/aoo_2"
"-accept=socket,host=localhost,port=8009;urp"


C:\Users\ariel>tasklist /FI "IMAGENAME eq soffice.bin" /FI "USERNAME eq ariel"

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
soffice.bin                   2532 Console                    1     37,992 K
soffice.bin                   4384 Console                    1     53,404 K


C:\Users\ariel>netstat -nao -p TCP

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    127.0.0.1:8001         0.0.0.0:0              LISTENING       2532
  TCP    127.0.0.1:8009         0.0.0.0:0              LISTENING       4384

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to