Hi Folks, I was experimenting using aspects using aspectj for implementing clustering. The idea is to use aspect to capture context creation/deletion and property settings w/o manully adding code in the kernal module to explicitly do so.
Here are some advantages and disadvantages and I would like to see some comments about this before I go any further. advantages --------------------- This is non-intrusive and there want be any code anywhere in the kernal module that delegates operations to the cluster manager Simple as there is a central piece of code that managers capturing of events that needs to be clustered. aspectj jars are only required in your runtime if u want to use clustering aspects could be used to develop other functionality too disadvantages ---------------------- If we use complie time weaving we need to have the aspectj compiler to compile the kernal and the cluster module to do the weaving. If we use load time weaving then the end user needs to have the aspectjweaver.jar in their classpath and also provide a java agent as a jvm argument. Ex: -javaagent:pathto/aspectjweaver.jar Comments are greatly appreciated. Regards, Rajith
