Chapter 13. Chatting and tweeting
This chapter covers
- Messaging with Extensible Messaging and Presence Protocol (XMPP)
- XMPP status updates
- Messaging with Twitter
We covered a lot of Spring Integration adapters in previous chapters. You saw how to invoke both Simple Object Access Protocol (SOAP)-based and Representational State Transfer (REST)-based web services over HTTP. You saw how to send and receive messages using the Java Message Service (JMS) API. Those adapters, and most of the others that we covered up to this point, are focused on well-established technologies that are commonly encountered in the enterprise development environment. HTTP is a ubiquitous protocol that provides the foundation of the World Wide Web, and JMS is included among the Java EE specifications. In this chapter, we shift our focus to two different technologies: XMPP and Twitter. Both are well on their way to reaching mainstream status, if they aren’t already there. Many enterprise Java developers probably use both technologies daily, but XMPP and Twitter have relative newcomer status in the realm of enterprise Java applications. That trend is likely to accelerate, and in this chapter, you learn how easy it can be to introduce these technologies into your applications via Spring Integration’s corresponding adapters.