Duration: 4 Days
In this course, you will build a Spring-powered Java application that demonstrates the Spring Framework and other Spring technologies like Spring aspect-oriented programming (AOP) and Spring Security. Completion of this course entitles you to receive a free voucher to schedule an exam at a Pearson VUE Center to become a Spring Certified Professional.
Certification:
SpringSource Certified Spring Professional
What You Will Learn
- Use the Spring Framework to develop Java applications
- Use dependency injection to set up and configure applications
- Test Spring-based applications
- Set up Spring configuration using XML, annotations, and Java configuration
- Use Hibernate and JDBC with Spring to access relational databases
- Use Spring support for transactions
- Use AOP to add behavior to objects
- Develop a basic web application with Spring MVC
- Use Spring Security to secure Web applications
- Use Spring with RMI, HttpInvoker, and JMS for remote communication
- Add management with the JMX API
Audience
- Java developers who need training on the Spring Framework
- Individuals who want to pursue Spring Certified Professional certification
Prerequistes
- Good understanding of the core Java APIs as well as basic knowledge of general J2EE concepts and APIs, such as JTA and the Servlet API
- Basic knowledge of object-relational mapping (ORM) concepts
Course Outline
1. Introduction to Spring
- Spring Application Contect
- XML Configuration
- Working with Existing Singletons and Factories
- Working with Multiple Configuration Files
2. Bean Life Cycle
- XML Namespaces
- Initializations, Use, and Destruction Phases
- Working with Spring Interceptors
- Externalizing Constant Values into Property Files
- Bean Scopes
3. Simplifying Application Configuration
- Bean Definition Inheritance
- Inner Beans
- P and Util Namespaces
- Dependency Injection of Collection
- Spring Expression Language (SpEL)
4. Annotation-Based Dependency Injection
- Autowiring and Component Scanning
- Stereotype Annotations
- Java-Based Configuration
- Mixing Configuration Styles
- Using XML, Annotations, and Java Configuration
5. Testing a Spring-Based Applcation
- Annotations for Integration Testing with Spring (Using JUnit)
- Advanced Concepts
- Application Context Catching and the @DirtiesContext Annotation
6. Aspect-Oriented Programming
- Problems AOP Solves
- Difference between Spring AOP and AspectJ
- Pointcut Expression
- Using the Types of Advice
7. Data Access and JDBC with Spring
- Integrating Spring with Exsiting Data Access Technolgoies
- DataAccessException Hierarchy
- JDBC Namespace
- Simplifying JDBC Access Using the Spring JDBC Template
8. Integrating Spring with Hibernate
- ORM with Hibernate
- Benefits of Using Spring with Hibernate
- Hibernate Configuration in Spring
- Exception Handling
9. Database Transactions with Spring
- Declaring a Spring Transaction Manager
- @Transactional Annotation
- Configuring Isolation Levels
- Configuring Transaction Propagation
- Transactions and Integration Testing
10. Spring in a Web Application
- Configuring Spring in a Web Application (Using Spring MVC, Struts, JSF)
- Spring MVC
- Defining Spring MVC Controllers Using Annotations
- Spring MVC in the View Layer
- <mvc/> Namespace (New in Spring 3.0)
11. Spring Security
- Problems Spring Security Resolves
- Configuring Authentication
- Intercepting URLs
- Spring Security Tag Library for JSPs
- Security at the Method Level
- Customizing the Spring Security Filter Chain
12. Remoting
- Problems with Traditional RMI
- Using Spring Remoting Over RMI
- Using the Spring HttpInvoker for Remote Access Over HTTP
13. JMS
- Configuring JMS Resources with Spring
- Sending and Receiving Messages Using the Spring JMSTemplate and Message Listener Containers
14. JMX
- Configuring Spring to Export MBeans Automatically
- Exporting a Spring Bean as an MBean
Course Labs
Hands-on labs are interspersed throughout this class.