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 7638915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:17:23+00:00 2026-05-31T08:17:23+00:00

Is it possible to integrate aspectj with java ee 6 ? I want to

  • 0

Is it possible to integrate aspectj with java ee 6?
I want to do this because I have some entities (that I transfer on a standalone eclipse client) and I would like to write once and use everywhere… using interceptors from EE it is not working in client. (I just want to notify listeners each time I access a set method)

I am using

  • glassfish 3 as AS
  • java ee 6

Thank you in advance

  • 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-31T08:17:24+00:00Added an answer on May 31, 2026 at 8:17 am

    That is possible.

    The simplest option is to use compile-time weaving. The Eclipse AJDT plugin can compile for you during development. Ant and Maven 2 also supports compiling with AspectJ. Here I have written a response on how to compile with Ant.

    It’s also possible to load-time weave the aspects into your code. That is a little bit more difficult, since it’s different ways to do it on different application containers. Standalone you have to use a JVM argument to enable weaving.
    An example:

    -javaagent:pathto/aspectjweaver.jar
    

    I have written more about load-time weaving here.

    With compile-time weaving I have good experience on standalone clients, IBM Websphere, Jetty, Tomcat and JBoss. The same code works on all platforms and produces the same result. I have no bad experiences with other platforms regarding AspectJ, I just haven’t tried them.

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

Sidebar

Related Questions

Is it possible to have a Java/J2EE web application integrate/communicate with SharePoint to load,
Is it possible to integrate sharepoint into a site that was developed in dotnetnuke?
I just wants to know that is it possible to integrate Displaytag with spring
Possible Duplicate: Graph visualization code in javascript? I have to integrate a graph with
Is it possible to integrate Jquery with Eclipse/MyEclipse? By integrating i mean, if i
Is it possible to integrate Cython and TG2? I have one computation (written in
Is it possible to integrate SpecFlow into SharpDevelop as an addin? Because i found
Possible Duplicate: Is it possible to integrate Jquery with Eclipse? Found WTP does not
Possible Duplicate: Is it possible to integrate Jquery with Eclipse? I need code completion
Anyone have any thoughts on how/if it is possible to integrate Google Code commits

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.