ABOUT US

|

SUPPORT

|

BLOG

DOWNLOADS    

 

 

 

 


 

 

Shutting down the WebRenderer Server Edition

 

 

 

 

 

 

Shutting down cleanly

It is possible to end WebRenderer in a Java application without disrupting the operation of the program or server.

Each instance of an IBrowserCanvas is on its own thread. These instances can be destroyed in the following way, which will also destroy the thread:

        IBrowserCanvas browser;
        browser = BrowserFactory.spawnMozilla();
        ...
        BrowserFactory.destroyBrowser(browser);


Once all browsers spawned have been destroyed, the Mozilla renderer can be shut down using:

        BrowserFactory.shutdownMozilla();

This function will return return true if the shutdown was successful. It will return false if there are still browsers that have not been destroyed or if Mozilla has not been constructed. The WebRenderer Server Edition has an underlying thread that is stopped when shutdownMozilla is called.

 

 

 

 

 

 Copyright JadeLiquid Software - www.jadeliquid.com