[JBoss AOP] - Re: Strange problem of aspectizing EJBs
by vola
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
18Â years, 10Â months
[JBoss Seam] - Re: DataModel PersistentSet problem from rich subtable
by amitdk
I did try passing in the task id. However, even that comes as null in my session bean:
| @Begin
| public void updateTask(String id)
| {
| System.out.println(id);
| .......
|
I went back to the Seam reference manual and was again reading through this excerpt:
anonymous wrote : 26.1. Parameterized Method Bindings
| Note: You can not pass objects as arguments! All that is passed is names, for example, hotel.id and user.username. If you check the rendered code of the previous example, you will see that the command button contains these names. These name arguments will be submitted to the server when you press the button, and Seam will look up and resolve these names (in any available context) before the action method is called. If the arguments can not be resolved at that time (because hotel and user variables can not be found in any available context) the action method will be called with null arguments!.
Is this the problem I am stumbling on? Since the AssignedTask is an association of the Objective and AssignedTask is not declared as a DataModel, Seam is not able to find the list of AssignedTask objects in any context. Am I understanding this correctly? Also, besides converting the button to a link and passing the id that way, is there any other way around?
Thanks
Amit
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062490#4062490
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062490
18Â years, 10Â months