Annotation Driven Portlet Development with Spring

10,256 views
10,065 views

Published on

An introduction to portlet development in the Java EE 5 environment using Spring Portlet MVC (2.5).

Annotation-driven development is new to the IBM-world, given the recent release of IBM Portal 6.1. This development style is faster, cleaner, and easier to understand than prior portlet development methods and is applicable across vendors (IBM, JBoss, BEA/Oracle).

In this FYB, we'll look at:

* Portlet controllers using Spring Portlet annotations
* Annotation-based dependency injection of back-end services
* Validation capabilities and integration
* more...

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
10,256
On SlideShare
0
From Embeds
0
Number of Embeds
2,676
Actions
Shares
0
Downloads
161
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Annotation Driven Portlet Development with Spring

  1. 1. Annotation Driven Portlet Development w/Spring Andy Pemberton,
  2. 2. Agenda • Spring Portlet MVC 2.5 • Annotations • Goodies • Real World • Demo • Coming Soon
  3. 3. Spring Portlet MVC • Design Pattern • Model View Controller • Front Controller
  4. 4. Spring Portlet MVC • JSR 168 - Portlet 1 • JSR 286 - Portlet 2 • Two Phase • CapTech State Pattern
  5. 5. Spring Portlet MVC • Dependency Injection • applicationContext.xml • *-portlet.xml
  6. 6. Spring Portlet MVC • Web MVC > Portlet MVC • Flexible ViewResolver • Binding • i18n
  7. 7. Old School
  8. 8. Old School • Improvement, but... • Pre-Java 5 constructs • “Programming in XML”
  9. 9. New School
  10. 10. Spring Portlet Annotations • Web • @Controller • @RequestMapping • @ModelAttribute • DI • @Component, @Service
  11. 11. Other Spring Goodies • Flexible method signatures • Spring portlet filters • Form and error tags • <component-scan />
  12. 12. springmodules • Spring integration framework • Validation, JCR, Cache • https://springmodules.dev.java.net/
  13. 13. Real World • Challenges: 168 IPC, learning curve • Leverage existing conventions • Method signature standards • EAR-wide applicationContext
  14. 14. Coming Soon... • Tooling • Eclipse (IBM RAD) • JSR286, Spring 3 • Bleeding Edge • Seam portlets, JSR301, Guice
  15. 15. Get in Touch • www.andypemberton.com • aim: apembertonhsc • apemberton@messaging.captechventures.com

×