java - Using Spring AOP in an JSF application -


Consider JSF Web App with a managed Bean FooBean.java. I have declared this "Füben" in my face-config.xml file. Now, if I want to add spring AOP advice for Füben's methods, how do I do this?

  • Should I add an applicationContext.xml file and declare Managed Beans inside it?
  • Or will it work even if I am not declaring a managed bean within a spring configuration file?

Note: I have made a bean bean and have defined digit cut as "pintcut" ("inside (dummy web. Reporting .. *)". / P> < / Div>

You can load a regular spring reference XML file from within your web.xm:

  & lt; context param> gt; & lt; param-name & gt; contextConfigLocation & lt; / ultimate-name & gt; & lt; super-value & gt; / WEB-INF / classes / spring-context .xml & lt; / ultimate-value & gt; & lt; / context param & gt;  

Then you can submit your managed beans to the regulator spring You can still define these beans by ID in your JSPS.

You can also define your spring-context.xml

Able to use all standard Spring AOP stuff within

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -