JBoss-AOP Problem

gorefest

Erfahrenes Mitglied
Hi,

ich habe ein EAR-File, in dem ich einen Interceptor definiert habe. Nun möchte ich aber die Interception über einen AOP Pointcut machen lassen, um sicherzustellen, dass das niemals in Produktion geht. Wie stelle ich das an?

Hier ist meine XML-COnfig :

XML:
<aop xmlns="urn:jboss:aop-beans:1.0">
    <aspect class="com.foo.interceptor.LoggingInterceptor"/>

    <!-- Alle Webservice-Aufrufe : geht nicht -->
    <bind pointcut="execution(public *->@javax.jws.WebService (..) )">
        <advice aspect="com.foo.interceptor.LoggingInterceptor" name="intercept"/>
    </bind>

    <!-- WSDL-Interface Klasse : geht nicht -->
    <bind pointcut="execution(* com.foo.schema.*->*(..) )">
        <advice aspect="com.foo.interceptor.LoggingInterceptor" name="intercept"/>
    </bind>

    <!-- WSDL-Interface Klasse : geht nicht -->
    <bind pointcut="execution(* com.foo.schema.*->*(..) )">
        <interceptor-ref name="com.foo.interceptor.LoggingInterceptor"/>
    </bind>

    <!-- konkrete Implementierung : geht nicht -->	
    <bind pointcut="execution(* com.foo.webservice.MyWSImpl->*(..) )">
        <interceptor-ref name="com.foo.interceptor.LoggingInterceptor"/>
    </bind>
</aop>

Ich möchte, daß alle WS-Aufrufe durch den Logger geloggt werden. Die Klasse dafür ist zZt Bestandteil des EARs - da ich keine NoClassDefFoundException bekomme, gehe ich mal davon aus, dass der Classloader das Ding sehen darf.

Hat jemand eine Idee?
 
Zuletzt bearbeitet von einem Moderator:
Zurück