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 :)

underdog
  • 4,447
  • 9
  • 44
  • 89
  • I think you may be able to get java files from war or jar file by [decomiple it][1]. [1]: http://stackoverflow.com/questions/647116/how-to-decompile-a-whole-jar-file – eric Feb 11 '14 at 21:38
  • do you mean by integration autowiring or something else? – Pankaj Sharma Mar 10 '14 at 04:38

1 Answers1

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.

Greg
  • 423
  • 5
  • 11
  • Thanks Greg. Nice example. – Pasha Apr 15 '14 at 12:51
  • Hi, the example doesn't works with spring security, do you have any clue, Regards – Alfonso Jul 08 '14 at 20:56
  • Hi, sorry for late feedback. Can you write more precisely about the problem you encounter? – Greg Jul 30 '14 at 12:26
  • 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. – Roman Aug 24 '14 at 15:52
  • 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/javac – Roman Aug 24 '14 at 15:54
  • 1
    I got that. maven-compiler-plugin in POM.XML was configured to 1.6. – Roman Aug 24 '14 at 16:11