Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6702697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:05:02+00:00 2026-05-26T07:05:02+00:00

I am using JSF1.2 framework. I didnt Integrate my application with Spring .I want

  • 0

I am using JSF1.2 framework. I didnt Integrate my application with Spring.I want to perform profiling on method invocations. my application file is EAR (EJB + WAR ). i can get the session beans methods execution time with the help of interceptor but for WAR module i was suggested to use AspectJ in this blog. so i have written some code. is there any thing i need to do like configuration details. I added the required jar file of AspectJ is JSF support AspectJ with any configuration? my code is:

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
@Aspect
public class AopInterceptor implements MethodInterceptor{

public AopInterceptor() {
}

@Pointcut("execution (* *.*(..))")
public void profile(){}

@Around("profile()")
public Object invoke(MethodInvocation mi) throws Throwable {
    System.out.println("test start");
    Object obj=mi.proceed();
    System.out.println("test end");
    return obj;
 }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:05:03+00:00Added an answer on May 26, 2026 at 7:05 am

    I have created a target in WAR build.xml file and I added the AspectJ jar files. Now I am getting all the invoked methods. here is the targer code:

     <taskdef  classpath="C:/Users/s.kosna/Downloads/aspectj-1.6.11/lib/aspectjtools.jar"
     resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties"/>
    <target name="aspectj">
    <echo level="info">--- aspectj (start) ---</echo>
    <condition property="targetos" value="windows" else="unix">
        <os family="windows"/>
    </condition>
    <pathconvert targetos="${targetos}" property="javac.convertedClasspath" >
        <path path="${javac.classpath}" />
    </pathconvert>
    <iajc source="1.6" target="1.6" showweaveinfo="true" verbose="true" destdir="${build.classes.dir}"  >
        <inpath>
            <pathelement location="${build.classes.dir}"/>
        </inpath>
        <classpath>
            <pathelement location="${javac.convertedClasspath}" />
        </classpath>
    </iajc>
    <echo level="info">LORDDOSKIAS BRUTAL TEST ---</echo>
    </target>
    
    <target name="-post-compile" depends="aspectj"></target>
    

    put the above code in one package and add the above ant script in you war build.xml thats it it will work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application using JSF1.2 + Richfaces 3.3.3 Final, MyFaces 1.2.7, Spring +
Using JSF1.2, if my datatable binding returns no rows I want to display a
I'm using JSF 1.2 with Richfaces and Facelets. I have an application with many
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I am trying to creating a small wizard using jsf1.2 sun RI +richfaces. The
I'm using JSF 2.0 and want to fill a selectOneMenu with the values of
I using JSF 2.0 + Icefaces 2.0 and try to implement spring security 2.06
I am working on a project to take an existing project using JSF1.2, JSP,
How can I debug JSPs in my JSF1.6 application running on Weblogic 9 application
I have small application using JSF 1.1. It is using NTLM for authentication. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.