Hey,
My problem is a little complicated. I'll try to explain in details - but pls do not hesitate and ask for clarifications...
I have a product - applet based. I want to manipulate the code on run-time using aspectj. Since the applet is running on the client jvm I can't load it with '-Djava.system.class.loader=org.aspectj.weaver.loadtime.WeavingURLClassLoader' as with applications.
My current solution is to 'replace' the applet tag in the jsp - to call a wrapper applet. The wrapper applet is initiate the product with the aspectj classloader:
URL source = new URL("jar:"+getCodeBase()+"aProduct.jar!/");
URL aspect = new URL("jar:"+getCodeBase()+"myAspects.jar!/");
URL[] urlList = {source, aspect };