File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes JBoss AOP anyone?:) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JBoss AOP anyone?:)" Watch "JBoss AOP anyone?:)" New topic

JBoss AOP anyone?:)

Balamaci Serban
Ranch Hand

Joined: Mar 16, 2005
Posts: 49
Hmm there is a snowballs chance in hell that this will be solved here i guess but since i posted on the Jboss forum, which sadly is not very popular and not only the problem received any answers but no views as well.

So i have the


Created in the META-INF a jboss-aop.xml looks like this

It took me two hours to understand i was missing a ), so i would suggest extra attention .

So i bundle up the classes in a jar. Off with them in the /default/deploy/Test directory. I lookup the bean and call SNAPSHOT, get the Hello message but nothing else. I delete the jboss-aop.xml from the META-INF, and recreate the jar. I put the jar in the /Test and create a /default/deploy/Test/META-INF and put there the jboss-aop.xml. Still nothing else. I begin to change to "execution(* com.balamaci.FunctionarBean->SNAPSHOT(..))"
,even to "execution(* com.balamaci.FunctionarBean->setSessionContext(..))" still to no avail. Please, am I doing something wrong here? It can't find the com.balamaci.SimpleInterceptor class? It doesn't complain when i mistype it so that may be the case. Well it's pretty much jboss specific so i'm not really hoping for a solution.

Balamaci Serban
Ranch Hand

Joined: Mar 16, 2005
Posts: 49
Yes, it's JBoss related.Since the aspect was not compiled in the class, I had to set in /default/deploy/jboss-aop.deployer/META-INF/jboss-service.xml EnableTransformer to true.
I agree. Here's the link:
subject: JBoss AOP anyone?:)
It's not a secret anymore!