Bernhard Berger [
http://community.jboss.org/people/berber] created the discussion
"Problems with runtime weaving and typedefs"
To view the discussion, visit:
http://community.jboss.org/message/606216#606216
--------------------------------------------------------------
Hi,
I've a problem with runtime weaving of an enterprise application leading to a hard
crash of the java runtime. There is an error entry in the server log, telling that he is
not able to load a transformed class (see attachement). I think it is a problem that can
not be solved in minutes, therefore I tried to exclude the class from instrumentation and
I realized I'm not able to configure aop this way.
I'm using the following typedef and binding to instrument my system:
<typedef name="system" expr="class(com.XXX.*) AND
!class(com.XXX.YYY.Foobar)" />
<bind pointcut="call(public * $typedef{system}->*(..))">
<before aspect="..." trace="..." />
</bind>
I'm aware that instrumenting the whole application is very expensive but I have to do
some kind of runtime tracing and this is the only way I see. Is this the way I should
reach my goal or did I understand the documentation wrong?
Thanks in advance
Bernhard
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/606216#606216]
Start a new discussion in JBoss AOP at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]