I'm looking to set up a Twitter stream using Twitter4J. I plan to be able to search using a keyword. I also would like to use Spring MVC as this is something I've used a lot recently. However, I would like to stream an infinite amount of tweets without stopping to the view until user interaction. I'm not too sure if this is possible using Spring.
Could someone give me some advice on whether this would be possible and point me to some documentation so I could read it? Or whether using Java and Spring is over complicating my problem and I would be better using a different technology altogether.
You can use Spring's websocket support with STOMP (see reference doc and a chat application example), which has been supported since 4.0.
Or you can also use the newest HTTP Streaming support (currently in 4.2.0.RC1).