Topic
  • 1 reply
  • Latest Post - ‏2014-02-04T16:32:05Z by JoeChacko
NikolayGarbuzov
NikolayGarbuzov
3 Posts

Pinned topic Load-time weaving in Liberty profile

‏2014-02-03T09:17:01Z |

Hello.

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.

 

Thanks,

Nikolay

Attachments

  • JoeChacko
    JoeChacko
    15 Posts

    Re: Load-time weaving in Liberty profile

    ‏2014-02-04T16:32:05Z  

    There is an issue where load-time weaving does not work with the Liberty Profile at the moment, nor does the Liberty Profile support the pre-define plugin for class loading. Please open a PMR so we can work on a fix for you.

    Regards,

    --joe, Liberty Profile development