The Artima Developer Community
Sponsored Link

Java Buzz Forum
Interceptors in EJB 3.0?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jason Carreira

Posts: 24
Nickname: jcarreira
Registered: Jul, 2003

Jason Carreira is a Software Architect for Notiva Corp.
Interceptors in EJB 3.0? Posted: Aug 8, 2003 7:22 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Jason Carreira.
Original Post: Interceptors in EJB 3.0?
Feed Title: Jason Carreira
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Personal Aggrandizement
Latest Java Buzz Posts
Latest Java Buzz Posts by Jason Carreira
Latest Posts From Jason Carreira

Advertisement

Cedric Says:
While I initially responded than it would be interesting to have the specification define interceptors for EJB's formally, I am slowly changing my mind. The more I think about it, the more I believe it would be a bad idea to add this to the EJB specification. There are several reasons to this, which I'll examine in turn:

  1. Lack of use cases
  2. AOP

The point is not AOP, the point is interceptors being applied at a certain well-defined point in a call stack. This is very powerful and very easy, done correctly. Think Servlet Filters, not AOP. Check out XWork, where we've applied this pattern to a command-pattern implementation with great success.

Right now, EJB basically has these interceptors hardcoded in for security, transactionality, etc. Now if these standard services were mapped to given names ("Security" and "Transaction" come to mind) then each vendor could map their own implementations of these interceptors to these names in the Interceptor registry and, instead of the complex deployment descriptors we have now, we could have a single place to apply any set of interceptors in any order. We could also allow (advanced) users to remap these default keys to replace the security interceptor or the transaction interceptor, as well as add in any other interceptor you need.

Allowing this, and putting it in external configuration files, will allow our legacy J2EE apps (which is becoming reality now, as J2EE has been around long enough for many products/projects to have moved from an active development cycle to maintenance) to be easily integrated with other apps as the need arises without having to change the app itself and re-test /re-deploy...

Read: Interceptors in EJB 3.0?

Topic: Sun's new Java Portal and Java Logo... Previous Topic   Next Topic Topic: JBoss and open-source maturity

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use