25.02.2015 Views

Introducing Spring Framework

Introducing Spring Framework

Introducing Spring Framework

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 11<br />

Integrating Your <strong>Spring</strong> Application<br />

with External Systems<br />

In this chapter, you are going to learn how to integrate your <strong>Spring</strong> application, My Documents, with external or<br />

existing systems. Let’s imagine for a moment that you have two friends. The first friend wants to send you some<br />

document information: the same Document class model that you have in XML format. But this friend only knows JMS<br />

(Java Message Service). The second friend wants to only receive document information in XML format as well, but<br />

this friend only knows AMQP (Advance Message Queue Protocol).<br />

Figure 11-1 shows how you should communicate between these systems. At the end of this chapter you will know<br />

how to integrate your My Documents <strong>Spring</strong> application with external systems, either JMS or AMQP technologies.<br />

Producer<br />

Sends New<br />

Document in XML<br />

Format<br />

Consumer<br />

Consumes a<br />

Document in XML<br />

Format<br />

JMS Container<br />

Apache ActiveMQ<br />

AMQP<br />

RabbitMQ<br />

JMS<br />

Listener<br />

My Documents<br />

AMQP<br />

Producer<br />

Figure 11-1. Communication Between External Systems<br />

145

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!