Hi Guys,

The class for external processes is already available

http://code.google.com/p/jodconverter/source/browse/tags/3.0-beta-2/jodconverter/src/main/java/net/sf/jodconverter/office/ExternalProcessOfficeManager.java

Which basically means you just need to modify this code to call a 
different ProcessOfficeManager

    /**
     * Initializes the internal {...@link OfficeManager}.
     */
    private void initializeOfficeManager() throws 
OpenOfficeServerManagerException
    {
        File officeHome = new File(getOfficeHome());
        File officeProfile = new File(getOfficeProfile());
        try {
            ManagedProcessOfficeManager managedProcessOfficeManager =
                new ManagedProcessOfficeManager(officeHome, officeProfile);
            
managedProcessOfficeManager.setMaxTasksPerProcess(configuration.getMaxTasksPerProcess());
            
managedProcessOfficeManager.setTaskExecutionTimeout(configuration.getTaskExecutionTimeout());
            this.officeManager = managedProcessOfficeManager;
            this.documentConverter = new 
OfficeDocumentConverter(officeManager);
            setOfficeManagerInitialized(true);
        } catch (IllegalArgumentException ex) {
            currentState = ServerState.CONF_ERROR;
            throw new OpenOfficeServerManagerException("Error while 
initializing OpenOffice server.", ex);
        }
    }

Ludovic

Asiri Rathnayake a écrit :
> Hi Neils,
>
> +1, However, I'd also like to express a wish for the ability to launch the
>   
>> openoffice server the "old fashioned tedious way" for those with security
>> concerns and a desire for standards of service administration on web
>> servers. Does this new release re-enable that capability that was removed
>> from 1.8M2?
>>     
>
>
> Currently we are evaluating the possibility of sharing an OpenOffice.org
> server instance between multiple wikis. Jodconverter at the moment does not
> support this feature:
> http://groups.google.com/group/jodconverter/browse_thread/thread/f4505c24545dd395/2768f45d5c6fa00c#2768f45d5c6fa00cBut
> we believe that some hacking into jodconverter will allow us to
> implement this feature.
>
> Putting everything together (if we succeed with hacking jodconverter),
> OfficeImporter admin interface will allow admins to either specify an
> external OOo server to connect to or let XE start it's own OOo server
> process. This would be the ideal outcome, lets's see if we can get there :)
>
> Thanks.
>
> - Asiri
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
>   


-- 
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to