Yes they will need to have the parameters. I am assuming you have a facade with
methods that do something like:
class CustomerFacade implements SessionBean
{
public int createNewCustomer(Customer cust){...}
public void updateCustomer(Customer cust){...}
public void deleteCustomer(int id){...}
}
And you are advising this facade?
Depending on the method called (also available in the MethodInvocation), you
should then be able to figure out which parameters you need to access to the
data you need.
An alternative could be to use annotations for these methods to tell your
advice which parameters hold what. See
http://docs.jboss.com/aop/1.3/aspect-framework/examples/annotation14/annotation.html
(working example in the downloadable distribution)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921172#3921172
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921172
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user