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 20 ■ Your First <strong>Spring</strong> XD Application<br />

Figure 20-9. <strong>Spring</strong> XD’s Metrics at http://localhost:9393/metrics<br />

Figure 20-9 shows the <strong>Spring</strong> XD’s metrics; the counter you care about is counter.status.200.streams.docs-pdf.<br />

Also, you can go to http://localhost:9393/metrics/counters and see the name of the actual counter. In your case,<br />

it’s “pdfcount”.<br />

Next, you are going to start by sending a few documents to the RabbitMQ. (You can use the RabbitMQ web<br />

console under the queues and select docs-pdf > Publish Message section.) Look at the metric reported by <strong>Spring</strong> XD;<br />

you should have the number of messages sent. Also, you can send document messages using one of the producers<br />

from other chapters. After sending the PDF document messages, you can open any browser and go to<br />

http://localhost:9393/metrics/counters/pdfcount (see Figure 20-10).<br />

284

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

Saved successfully!

Ooh no, something went wrong!