Introducing Spring Framework
Introducing Spring Framework Introducing Spring Framework
■ Contents ■■Part 2: Spring Framework 87 ■■Chapter 8: Give Advice to Your Spring Application89 Advice to My Documents89 AOP to the Rescue91 AOP Concepts 92 Before Advice 96 After Advice 98 Around Advice 100 After Throwing Advice 102 AOP with Annotations107 Summary109 ■■Chapter 9: Adding Persistence to Your Spring Application111 Adding Persistence111 Embedding a Database126 A New Way to Collect Data: JdbcTemplate and RowMapper129 Summary132 ■■Chapter 10: Showing Your Spring Application on the Web133 Persistence Layer133 Spring MVC135 Internationalization: i18n141 Summary144 ■■Chapter 11: Integrating Your Spring Application with External Systems145 Java Message Service146 Spring JMS150 RabbitMQ and Spring Rabbit159 Summary167 ix
■ Contents ■■Chapter 12: Exposing a REST API169 RESTful169 HTTP-GET 177 HTTP-POST 178 HTTP-PUT 180 HTTP-DELETE 181 Summary182 ■■Chapter 13: Adding E-mail and Scheduling Tasks183 Sending E-mails183 Let’s Talk About Asynchronous Tasks186 Let’s Schedule189 Summary192 ■■Part 3: Spring Framework Advanced 193 ■■Chapter 14: Using Dynamic Languages195 Get More Dynamic195 Doing Something Groovy197 Using JRuby and Bean Shell200 Summary202 ■■Chapter 15: Spring Data Within Your Spring Application203 Using NoSQL Databases203 Implementing the DocumentDAO207 Testing MongoDB210 A Complete DocumentDAO Test214 Summary216 x
- Page 273 and 274: Chapter 20 ■ Your First Spring XD
- Page 275 and 276: Chapter 20 ■ Your First Spring XD
- Page 277 and 278: Chapter 20 ■ Your First Spring XD
- Page 279 and 280: Chapter 20 ■ Your First Spring XD
- Page 281 and 282: Chapter 20 ■ Your First Spring XD
- Page 283 and 284: Appendix A Installing Tools In this
- Page 285 and 286: Appendix A ■ Installing Tools Fig
- Page 287 and 288: Setting Environment Variables Appen
- Page 289 and 290: Appendix A ■ Installing Tools Fig
- Page 291 and 292: Appendix A ■ Installing Tools 6.
- Page 293 and 294: Appendix A ■ Installing Tools Fig
- Page 295 and 296: Appendix A ■ Installing Tools ■
- Page 297 and 298: Appendix A ■ Installing Tools Fig
- Page 299 and 300: Appendix A ■ Installing Tools Fig
- Page 301 and 302: Appendix A ■ Installing Tools Fig
- Page 303 and 304: Appendix A ■ Installing Tools Fig
- Page 305 and 306: Stop MongoDB Server Appendix A ■
- Page 307 and 308: Stop ActiveMQ Appendix A ■ Instal
- Page 309 and 310: Installing RabbitMQ on Windows Appe
- Page 311 and 312: Appendix A ■ Installing Tools Fig
- Page 313 and 314: Installing Spring XD on Windows App
- Page 315 and 316: ■ index • I I/O operations, 62
- Page 317 and 318: ■ index Spring application (cont.
- Page 319 and 320: Introducing Spring Framework A Prim
- Page 321 and 322: To my parents, Rocio Cruz and Felip
- Page 323: ■ Contents ■■Chapter 3: Apply
- Page 327 and 328: ■ Contents ■■Chapter 20: Your
- Page 329 and 330: About the Author Felipe Gutierrez i
- Page 331: Acknowledgments I would like to exp
■ Contents<br />
■■Part 2: <strong>Spring</strong> <strong>Framework</strong> 87<br />
■■Chapter 8: Give Advice to Your <strong>Spring</strong> Application89<br />
Advice to My Documents89<br />
AOP to the Rescue91<br />
AOP Concepts 92<br />
Before Advice 96<br />
After Advice 98<br />
Around Advice 100<br />
After Throwing Advice 102<br />
AOP with Annotations107<br />
Summary109<br />
■■Chapter 9: Adding Persistence to Your <strong>Spring</strong> Application111<br />
Adding Persistence111<br />
Embedding a Database126<br />
A New Way to Collect Data: JdbcTemplate and RowMapper129<br />
Summary132<br />
■■Chapter 10: Showing Your <strong>Spring</strong> Application on the Web133<br />
Persistence Layer133<br />
<strong>Spring</strong> MVC135<br />
Internationalization: i18n141<br />
Summary144<br />
■■Chapter 11: Integrating Your <strong>Spring</strong> Application with External Systems145<br />
Java Message Service146<br />
<strong>Spring</strong> JMS150<br />
RabbitMQ and <strong>Spring</strong> Rabbit159<br />
Summary167<br />
ix