Intro
Speaker's Qualifications
Agenda
Interceptors Overview
Purpose of Interceptors
Simple example: Method Profiling
What's wrong with the example?
Simple example: Method Profiling
What's wrong with the example?
Interceptors to the Rescue
Interceptor Implementation
@AroundInvoke method
Interceptor Implementation
@AroundInvoke method
javax.interceptor.InvocationContext
InvocationContext usage
InvocationContext usage
InvocationContext usage
Interceptor Details
Interceptor Lifecycle
Evolving Profiler
Evolving Profiler
XML: Annotation Alternative
Applying Interceptors
Applying Interceptors
@Interceptors on Class
Applying Interceptors
Binding through XML
Binding through XML
Binding through XML
Per-method interception
Applying Per-Method Interceptors
Binding through XML
Default Interceptors
Binding through XML
Interceptor Exception Handling
Aborting an Invocation Use Case
Aborting an Invocation
Configure the interceptor
Aborting an Invocation
Bind the interceptor
Swap in Fraud Detection
Aborting an Invocation Use Case
Aborting an Invocation
Exception Wrapping Use Case
Exception Wrapping
Exception Wrapping
Intercepting Life cycle Events
Custom Injection Annotation
Custom Injection Annotation
Step 1: Define Annotation
Step 2: Write the Interceptor
Step 3: Apply interceptor
Summary of Use cases
Interceptors in Action
EJB/Spring integration
JBoss Seam
Future Spec Enhancements?
Expressions
Expressions
Annotation Indirection
Summary
Shameless Plug
The EJB 3.0 spec defines the ability to apply custom made interceptors to the business methods of your session and message driven beans (and of course to the JBoss @Service and @Consumer beans). EJB 3.0 interceptors take the form of methods annotated with the @javax.ejb.AroundInvoke annotation. This JavaPolis talk by Bill Burke covers this part of the EJB3 spec.
Bill Burke is CTO of JBoss Group. Bill fell in love with middleware when he was introduced to DCE while at the parent company of Open Environment Corporation. He later went on to being a core member of the Orbix2000 team at Iona, where he helped them build some of their CORBA products. After weathering a few failed internet startups building J2EE applications, Bill stumbled into JBoss and helped them with their clustering architecture and EJB container. Now, as lead architect of JBoss 4, his main focus is on bringing AOP concepts and technology to the JBoss application server. Bill is co-author of O'Reilly's "JBoss 3.2 Workbook", and has numerous other in-print and on-line publications. He graduated magna cum laude with a B.S.C.S. from Northeastern University in Boston in 1994. In his spare time, now that JBoss is the full-time job, Bill likes to hang with his wonderful wife and is a rabid football fan being a New England Patriots season ticket holder for the past 10 years.