Oct 16th, 2012, 02:55 AM
Advantages and disadvantages of using JSF+Spring integration over JSF applications
Can anyone help me out that what are the main benefits and problems of using spring with JSF 2 over using standalone JSF 2 applications. How the use of their integration is useful? Rather what will be the disadvantage if shifting from spring+JSF integrated applications to standalone JSF applications?
Kindly suggest is it better to use JSF only or application with JSF and spring integration when your form data is linked to database queries and procedures (i.e having dao and service layer)?
Oct 16th, 2012, 04:08 AM
It looks like you have posted your query to wrong forum. "Spring Integration" is a project in itself based on Spring framework. It is based Enterprise Integration Patterns (EIP). Your question is more related to integrating Spring Framework with JSF. So repost your query to 'Container' forum to receive better answers.
However, referring to your question:
- Spring definitely has features which you can incorporate in your JSF project. For example, you can use Spring Transaction to get all the transaction using configuration. Another advantage would be if you are looking for out of box functionality like auditing, logging, it can be done using Spring AOP. In order to use spring in your JSF project, you just need to add ContextConfigListener and Context config param in web.xml.
JSF is more about views and navigation in views. This functionality is provided by Spring webflow.
Oct 16th, 2012, 05:17 AM
Sorry posting in wrong forum actualy new here and also new to Sping framework.I have posted in container forum.
Originally Posted by nit_mis
Still thanks for your answer about SpringTransaction, that was helpful.
Tags for this Thread