• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Jboss 5.1 aop not working

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to get my aop deployed to jboss 5.1. I have written an annotation, aspect, and jboss-aop.xml. I have verified that the aspect code gets executed when a method is annotated with the JobFlow annotation through eclipse.

However, when deploying the code to jboss, the annotation has no effect.

I did the following to deploy the aop:
1. jar up the annotation and aspect into a jar file and deploy it to farm
2. deploy the jboss-aop.xml and deploy it to farm
3. set enableLoadtimeWeaving in aop.xml to true
4. copied pluggable-instrumentor.jar to the bin directory and modified run.sh to include -javaagent:pluggable-instrumentor.jar

Then I also deployed as a separate jar class that use the annotations. However, the aop is not being applied.

I can run a test outside of jboss that has the annotation and see that the aop is being applied.

I also deployed docs\aspect-framework\examples\injboss example using deploy-basic-lt-war and confirmed that load-time weaving is working.

Can someone tell me what I am doing wrong?

ice is for people that are not already cool. Chill with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic