Atmosphere framework Spring mvc integration
Asked Answered
F

1

5

I am trying to integrate Atmosphere framework with Spring MVC

the samples war files given here http://async-io.org/download.html don't contain the .java files in the src folder.

I also went through the other integration examples http://keaplogik.blogspot.com/2012/05/atmosphere-websockets-comet-with-spring.html

I am having some problem connecting with twitter when reading through this article.

A. Is there a simpler example somewhere? with explanation like a hello world.

B. How do I get the java files of the sample war file?

I would really appreciate any help Thanks :)

France answered 1/1, 2014 at 10:45 Comment(2)
I think you may be able to get java files from war or jar file by [decomiple it][1]. [1]: #647616Reprehensible
do you mean by integration autowiring or something else?Treblinka
B
8

I wrote an example on how to integrate Atmosphere framework into Spring framework with usage of websocket protocol and long-polling as fallback protocol. You can find it on GitHub.

As a matter of second question the answer in no. You can't get the java files out of war packages. War packages contains of compiled java classes, resource files, xml configuration files, etc.

Binette answered 28/1, 2014 at 19:59 Comment(5)
Hi, the example doesn't works with spring security, do you have any clue, RegardsLarger
Hi, sorry for late feedback. Can you write more precisely about the problem you encounter?Binette
Hi. When trying to Package your project, i get error: [ERROR] /home/roman/git/spring-atmosphere-chat-example/src/main/java/tk/gregsource/app/AtmosphereController.java:[22,55] error: diamond operator is not supported in -source 1.6. Can you please suggest why would that be? STS 3.6.0, maven-compiler-plugin:2.5.1 integrated in STS.Asterism
I have both java 7 and 8 versions in my Ubuntu. /usr/java/jdk1.7.0_67/bin/javac and /usr/java/jdk1.8.0_20/bin/javacAsterism
I got that. maven-compiler-plugin in POM.XML was configured to 1.6.Asterism

© 2022 - 2024 — McMap. All rights reserved.