Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] AspectJ and JBOSS

I haven't used JBoss, so can't really help you here, but my suggestions:

* When you say you have updated the ant build to do the compile, do you mean
that you use the 'iajc' task instead of the 'javac' task?

* My understanding of how aspectJ works is that calls to the aspects get
embedded in the classes, so if nothing is happening, then the classes are
pure java classes without the aspects weaved into them... a dirty trick to
make sure you compiled the aspects into the classes would be to de-compile
to get the source code from the class files to see if the aspect related
calls are really embedded. I used mocha for de-compiling the java classes.


Curious to know why you opted to go for aspectJ when, JBoss has it's own AOP
implementation...

Hope this helps.

Arun N

-----Original Message-----
From: aspectj-users-admin@xxxxxxxxxxx
[mailto:aspectj-users-admin@xxxxxxxxxxx]On Behalf Of Nikhil Kumar
Sent: Monday, January 19, 2004 8:59 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] AspectJ and JBOSS


Hi.

I am trying to incorporate AOP using AspectJ into a
JBOSS application.  I have been able to successfully
update the ant build module to do the compile and I
inluded the EJBs and the Aspect into the ejb-jar.  I
also included the aspectjrt.jar in the Jar.  I did not
create a new service.  As a sample, I am using a
simple tracing aspect, similar to the Laddad book
example.  This works perfectly fine in a stand-alone
Java application.


The build goes through fine.  However when I run the
Web-app in JBOSS, nothing happens.  I have also put
the aspectjrt.jar into the server/lib directory.

Any suggestions/ experience notes on deploying aspectJ
modules in JBOSS?

Regards,
Nikhil

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top