Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Does EJB 3.0 use AOP?  RSS feed

 
John Strong
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike Keith and Merrick Schincariol,does EJB 3.0 use AOP?
Thanks,
- John Strong (pluviosilla@gmail.com)
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB 3.0 has support for interceptors.
 
Merrick Schincariol
author
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, method interceptors are there, but I wouldn't necessarily claim that it's an AOP solution. Introductions and field interception are missing compared to other AOP solutions.

That said, interceptors are generally what most people are looking for when they think of AOP. In OC4J, all of the system services, from transaction management to security are all implemented as method interceptors. Used correctly, they can lead to a decoupled and easily extended architecture.

Cheers,

Merrick
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Introductions and field interception are missing compared to other AOP solutions.

What are intoductions ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Introductions are used for example in Spring to add new methods or attributes to an existing class.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!