[aspectwerkz-user] hot deployment problem
Andrea Sindico <[email protected]> Sat, 28 Jan 2006 15:36:02 +0100
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
i am trying to do a runtime weaving...
i am using a jvm 5 with this option " -javaagent:
%ASPECTWEKRZHOME%\lib\aspectwerkz-jdk5-2.0.jar "
this is my code for the hot deployment, i am using jdom for xml
try{
Document xmldef = builder.build("aop.xml");
XMLOutputter xmout = new XMLOutputter();
dp.deploy(Class.forName("aspects.MyAspect"),xmout.outputString(xmldef));
} catch(Exception e) {
e.printStackTrace();
}
if i execute this code at the application startup the aspect is correctly
deployed.. but if i run it when some event occours (for example after the
selection of a Jbutton) nothing happens...
can you help me?
thanks in Advance!