Hey

As you all know the jBoss 2 containers have a concept called interceptor
which is used to implement everything that should be done per call, such
as tx checking and logging etc. 

Initially I wanted to be able to configure these directly through the
EJX GUI, in a way similar to the other plugins. However, there are a few
drawbacks to this. First of all, it is non-trivial to make a good
interface that lets you add/remove interceptors to the chain, and move
them around easily. Also, to the average user it won't be very intuitive
that many very important settings such as commit options (for
TxInterceptor) should be set there. In addition, if the interceptors are
set in the wrong order this can lead to complete malfunction of the
container. Being able to have complete control in the GUI is flexible; a
little too flexible however.

So, I was thinking that instead all of these settings could go in the
main Container settings. The set of interceptors, and their respective
order in the call chain, would be fixed in code (ContainerFactory to be
precise). The interceptors would then ask the Container for all of the
settings. This also makes it trivial to code the GUI (adding simple
properties is easy!).

A poweruser wanting to change the interceptors (add custom security for
example) would have to edit the ContainerFactory source, but this isn't
expected to be very common.

So, the question is: does it seem like a good idea to do all
configuration of interceptors in the Container, and let them be
hardcoded in ContainerFactory? (my vote is, of course, yes).

If so, here's a list of things that I would want to add to the Container
configuration GUI: (affected interceptor given)
* Commit options (EntitySynchronizationInterceptor). This setting
affects which commit option that is used (A,B,C as defined in EJB spec)
* Call logging (LogInterceptor). This setting logs all calls to a log.
Useful for debugging and audits. Exception logging is always available
even if this is turned off

Well... that's it for now I guess.. 

Comments please :-)

/Rickard

-- 
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

Reply via email to