You can start a OpenOffice in listening mode with e.g. this command:
ooffice -accept="socket,host=localhost,port=9000;urp;StarOffice.ServiceManager"
This commandline starts OpenOffice listening on port 9000
This method connect to a listening OpenOffice.