Results 1 to 6 of 6

Thread: Spring and Atmosphere Integration

  1. #1
    Join Date
    Sep 2010
    Posts
    14

    Default Spring and Atmosphere Integration

    Hi,

    We have an application which we should push some events from service layer to client.

    After some research I've found that Atmosphere is a good solution for us,
    We are using Spring for DI, Spring MVC 3.0.5, Spring Integration 2.0, Glassfish 3.0 .
    And jQuery on client-side.

    Now I wonder how can I integrate Atmosphere with a Spring Controller or Servlet?
    What They've mentioned on project home page is:
    *Servlet 3.0 is supported along with framework like Jersey (natively), GWT (natively), Wicket, Guice, Spring etc.

    But I couldn't find any good sample code for Spring. There are samples for Guice but not Spring which is more popular, so it can have a simple solution maybe(for version 0.7 at least).

    Can you guys give me a clue?

    Thanks in advance

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,791

    Default

    Hello

    What They've mentioned on project home page is:
    *Servlet 3.0 is supported along with framework like Jersey (natively), GWT (natively), Wicket, Guice, Spring etc.
    It refers or is related with the specificacion, I am not an expert for Atmosphere, but I think you should be able to integrate Spring MVC + Atmosphere without working directly with Servlets

    Wondered why on Google do not exists concrete tutorials for both, perhaps on DZone links you could get better results

    Let me know your advance
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    Sep 2010
    Posts
    14

    Default

    Thanks DR.

    I still didn't find any good guide to connect spring and atmosphere...

  4. #4
    Join Date
    Sep 2010
    Posts
    14

    Default

    I followed their twitter account,
    and they've just made a good sample less than 1 day ago which is exactly what I need,

    for those who are interested:

    https://github.com/ghillert/atmosphere-spring-web-mvc

  5. #5
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,791

    Default

    Hello Navid

    Have you tested with such code? is useful? have found it other tutorials?

    Pls let me know

    Best Regards
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  6. #6
    Join Date
    Jan 2013
    Posts
    2

    Default

    I was working on a similar problem - integrating Wicket (which is normally accessed by a WicketFilter defined in web.xml) with Spring, Spring Security and later on Atmosphere with Tomcat NIO protocol to have non-blocking server push. You may find the description of our solution here:
    http://burkond.blogspot.de/2012/12/a...-security.html
    http://burkond.blogspot.de/2013/01/n...push-with.html

    comments are welcome

    Quote Originally Posted by dr_pompeii View Post
    Hello Navid

    Have you tested with such code? is useful? have found it other tutorials?

    Pls let me know

    Best Regards

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •