Atmosphere being optional

Hi,


I wonder how can we get rid of the Atmosphere framework in 1.8.2. Can you provide the spring sample with Atmosphere integration removed?

Thanks,
Mariusz Pala
Hello Mariusz,

To disable Atmosphere first you have to set true to the groupdocs.annotation.disableAtmosphere option in the src/main/resources/application.properties. This is enough to turn Atmosphere off.

But to exclude it from the application (pom.xml) few next changes should be done:
  • Eliminate implementation of the IGroupDocsAnnotation interface. Currently it has few methods that require Atmosphere library.
    • Move all constants from the IGroupDocsAnnotation interface here to the HomeControllerBase abstract class (https://github.com/groupdocs/) and declare them final.
    • Change HomeControllerBase to implement IGroupDocsViewer instead of the IGroupDocsAnnotation.
    • Remove all appropriate @Override annotations from the HomeController class (https://github.com/groupdocs/) or move IGroupDocsAnnotation methods to the HomeControllerBase class and declare them abstract.
    • Remove onAtmosphereReady and onAtmosphereMessage methods from the HomeController (https://github.com/groupdocs/).
    • Remove the org.atmosphere.cpr.AtmosphereResource import from the HomeController (https://github.com/groupdocs/).
  • Remove the src/main/java/com/groupdocs/spring/slim/service/AtmosphereResolver.java class (https://github.com/groupdocs/).
  • Change the and declarations in the web.xml (https://github.com/groupdocs) to the next ones:

    dispatcherServlet
    org.springframework.web.servlet.DispatcherServlet

    contextConfigLocation
    /WEB-INF/mvc-config.xml

    1


    dispatcherServlet
    /
  • Replace the declaration in the mvc-config.xml (https://github.com/groupdocs/) with the empty one - .
Our product team works on the improvement of this part of the library. When something is changed in this area you’ll be informed.

The issues you have found earlier (filed as ANNOTATIONJAVA-744) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by GroupDocs Notifier.

Thanks,


and what functionality is not available when Atmosphere is disabled? Are there any limitations?

Thanks,
Mariusz

Atmosphere library is used to provide real-time collaboration between users, when it is disabled the application does not send real-time requests to clients for state change. Users would need to reload page manually to see changes from other collaborators.

OK, so it looks like I need Atmosphere. I just don’t see how to integrate it with the connector implementation being instantiated per HTTP session. But that points to my other post about the connector integration issues.

Hello Mariusz,

The question about usage of the InputDataHandler with differentiation per HTTP session is already answered in that another thread, please read it there (http://groupdocs.com/Community/forums/showthread.aspx?PostID=4953#5379).