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.