Introducing Spring Framework

Introducing Spring Framework Introducing Spring Framework

25.02.2015 Views

■ 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

■ 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

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

Saved successfully!

Ooh no, something went wrong!