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-8. RabbitMQ Web Console<br />

Figure 20-8 shows the RabbitMQ web console and the queues. Take a closer look and you will find that <strong>Spring</strong> XD<br />

has just created a particular queue with an ID as its name and a docs-pdf.0 queue that will be used for your counter.<br />

Let’s Do Analytics<br />

Now you are ready to start sending documents through RabbitMQ and see another <strong>Spring</strong> XD feature: analytics!<br />

<strong>Spring</strong> XD provides analytics to support real-time analysis using metrics such as counters and gauges. For your <strong>Spring</strong><br />

application you are going to use the counter that was declared on the tap. The name of your counter is “pdfcount”.<br />

You can open any browser and go to http://localhost:9393/metrics. This will show you JSON data, as shown<br />

in Figure 20-9.<br />

283

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

Saved successfully!

Ooh no, something went wrong!