[jboss-user] [JBoss AOP] - Re: Strange problem of aspectizing EJBs
vola
do-not-reply at jboss.com
Tue Jul 10 10:49:28 EDT 2007
Thank you for your quick reply.
My .ear file contains:
bank-ejb.jar
app-client.jar
web-client.war
aopexamplelib.aop
My application.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
| <display-name>JBossDukesBank</display-name>
| <description>Application description</description>
| <module id="EjbModule_1184078196095">
| <ejb>bank-ejb.jar</ejb>
| </module>
| <module id="JavaClientModule_1184078196048">
| <java>app-client.jar</java>
| </module>
| <module id="WebModule_1184078196158">
| <web>
| <web-uri>web-client.war</web-uri>
| <context-root>bank</context-root>
| </web>
| </module>
| <module>
| <java>aopexamplelib.aop</java>
| </module>
|
| <security-role>
| <role-name>BankAdmin</role-name>
| </security-role>
| <security-role>
| <role-name>BankCustomer</role-name>
| </security-role>
| </application>
|
So, I used ".aop" file to deploy.
My aopexamplelib.aop file contains:
com/sun/ebank/aop/SimpleInterceptors2.class
META-INF/jboss-aop.xml
The class I want to weave it is in "bank-ejb.jar", "com.sun.ebank.ejb.tx.TxControllerBean".
My situation is:
"injbossaop" example can be run perfectly. All configuration of JBoss has been done.
When depolying my Duke's Bank application, no any error occurs. When running the application, only "MyServlets" has been woven. (Prints out debug msg). Any other beans have not been woven. (Doesn't print out debug msg).
Pleas let me know if you need any other info. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062499#4062499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062499
More information about the jboss-user
mailing list