Hil

I had tried to deploy a aspectized jboss application. 

a) The Interceptor:
=========
package br.gov.conab.aop.servico;
  | import java.sql.Date;
  | 
  | import org.jboss.aop.advice.Interceptor;
  | import org.jboss.aop.joinpoint.Invocation;
  | 
  | public class LogAOPInterceptor implements Interceptor {
  |     public String getName() {
  |             return "LogAOPInterceptor";
  |     }
  |     public Object invoke(Invocation invoke) throws Throwable {
  |             System.out.println("[LogAOPInterceptor] Intercetando o metodo 
da classe"
  |                             + invoke.getTargetObject() + " "
  |                             + new Date(System.currentTimeMillis()));
  |             return invoke.invokeNext();
  |     }
  | }
=========

b) The log-aop.xml

=========
<?xml version='1.0' encoding='UTF-8' ?>
  | <aop>
  |     <interceptor 
  |             class="br.gov.conab.aop.servico.LogAOPInterceptor"
  |             name="LogInterceptor"           
  |     />
  |     <bind pointcut="execution(* br.gov.conab.aop.servico.*->*(..))">
  |              <interceptor-ref name="LogInterceptor"/>
  |     </bind>
  | </aop>

=========

c) The log-aop.xml was copy to {JBOSS_HOME}/server/default/deploy

The application was succesfuly deployment; however, the interceptor code wasn't 
weaving with the application code. 

Is necessary any other step? 
What could be woron?

Regards, 

Rodrigo Bonifacio.



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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to