Re: [aspectwerkz-user] hot deployment problem

Alexandre Vasseur <[email protected]> Tue, 31 Jan 2006 10:47:44 +0100
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
look at DeploymentScope in the doc
http://aspectwerkz.codehaus.org/dynamic_aop.html

Alex

On 1/28/06, Andrea Sindico <[email protected]> wrote:
> i am trying to do a runtime weaving...
>
> i am using a jvm 5 with this option   " -javaagent:
> %ASPECTWEKRZHOME%\lib\aspectwer
> kz-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!
>
>