![]() Object desktop = mxRemoteServiceManager.createInstanceWithContext( MxRemoteServiceManager = this.getRemoteServiceManager() String loadUrl = "private:factory/" + docType Protected XComponent newDocComponent(String docType) xDesktop.terminate() //kill soffice bin takes 100% CPU if you dont UnoRuntime.queryInterface( .XCloseable.class, XStorable.storeAsURL(sStoreFileUrl2.toString(), storeProps) Ĭom. xCloseable = ( .XCloseable ) ![]() SStoreFileUrl2.append(sourceFile2.toURL().toString()) StringBuffer sStoreFileUrl2 = new StringBuffer() PropertyValue storeProps = new PropertyValue įile sourceFile2 = new java.io.File(sOutputDir) XStorable xStorable = (XStorable)UnoRuntime.queryInterface( XMultiServiceFactory.class, mxRemoteServiceManager) MxFactory = (XMultiServiceFactory)UnoRuntime.queryInterface( MxDocFactory = (XMultiServiceFactory) UnoRuntime.queryInterface( Access the text document's multi service factory, which we will need MxDocProps = (XPropertySet) UnoRuntime.queryInterface( information like the current word count Get a reference to the document's property set. get a reference to the body text of the document XTextDocument.class, 圎mptyWriterComponent) ![]() MxDoc = (XTextDocument)UnoRuntime.queryInterface( query its XTextDocument interface to get the text XComponent 圎mptyWriterComponent = newDocComponent("swriter") program/soffice -headless -invisible -nologo -norestore ![]() I am starting openoffice as a server in headless mode i have tested with 2.4.2 and 3.0 versions of office No matter which version of soffice for linux without jre it gives the same So does openoffice really workout in a production web environment having it takes all CPU Usage andĬauses the the other applications to slowdown/hang.Īm i doing something wrong? I am just opening swriter and writing one document If I use xdesktop.terminate() the soffice bin thread is killed and releases the CPUīut why does soffice bin take 100% CPU Utilization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |