[jboss-user] [JBoss AOP] - Dynamic AOP - AspectManager.instance().addBinding() blocks

mane81 do-not-reply at jboss.com
Wed Oct 22 16:24:43 EDT 2008


Hi,
In my app I need to deploy aspects received from the network at runtime...
I'm trying to use hot deploy facilites of jboss-aop but something goes wrong.
Here it is a snippet of my code:
AdviceBinding binding = null;
		try {
			binding = new AdviceBinding("execution(public void a3.serviceManager.A3Manager->noOp())", null);
		} catch (ParseException e) {
			e.printStackTrace();
		}

		binding.addInterceptor(FirstHotAspect.class);
//		((Advised)service)._getInstanceAdvisor().insertInterceptor(new FirstHotAspect());

		 AspectManager.instance().addBinding(binding);

Last line cause a strange block...it seems like a synch deadlock.
Can someone help me?

Emanuele

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183981#4183981

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183981



More information about the jboss-user mailing list