We have a big project which uses ltw(load-time weaving) provided by aspectj (http://www.eclipse.org/aspectj/doc/next/devguide/ltw.html).
We have chosen ltw because it provides better performance and flexibility than common proxies and binary time weaving.
Our project uses Spring and works properly on Tomcat and Websphere 7. These web-servers provides mechanisms to activate ltw:
- Tomcat allows to redefine classloader in context.xml
- Websphere 7 allows to register classloader using com.ibm.websphere.classloader.ClassLoaderInstancePreDefinePlugin. (org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter uses it)
But we have not found any solutions to use ltw in Liberty Profile 8.5.5.
It seems there are no way to redefine classloader or to use Websphere 7 approach.
Please, advice how we can achieve our goals
I've attached very simple example which can demonstrate the issue.