12 Replies Latest reply on May 12, 2010 11:13 PM by gonzalad

    Seam 3 and Spring 3 integration

    asookazian

      any plans for Seam3 and Spring3 integration?

        • 1. Re: Seam 3 and Spring 3 integration
          mbogoevici

          Yes, I started working on this some time ago, but I had to put it on the backburner as I was pulled in other directions. I am looking forward to having something in the late April/May timeframe.


          Major themes would be :


          - injection support
          - native qualifier handling
          - scope/context interoperability
          - ability to work with Spring Transactions


          I know it's a bit sketchy, but please add any ideas that you think would be good to have.

          • 2. Re: Seam 3 and Spring 3 integration
            asookazian

            Spring Web Flow, Spring MVC, JdbcTemplate and various other useful/popular templates...


            I believe Web Flow has some kind of conversation support so that would be interesting when integrating with Seam...


            I'm not a Spring user currently but was just wondering about this topic.

            • 3. Re: Seam 3 and Spring 3 integration
              dan.j.allen

              Marius Bogoevici wrote on Mar 24, 2010 23:16:


              Yes, I started working on this some time ago, but I had to put it on the backburner as I was pulled in other directions. I am looking forward to having something in the late April/May timeframe.

              Major themes would be :


              • injection support

              • native qualifier handling

              • scope/context interoperability

              • ability to work with Spring Transactions



              I know it's a bit sketchy, but please add any ideas that you think would be good to have.


              I've updated the Spring integration module proposal. Feel free to add ideas there.

              • 4. Re: Seam 3 and Spring 3 integration
                gonzalad

                FYI, Spring 3 is planning to add conversation support in version 3.1 (SPR-6420).


                It would be great to add it to the scope/context interoperability.

                • 5. Re: Seam 3 and Spring 3 integration
                  gonzalad

                  Sorry, conversation top level issue is this one : SPR-6416

                  • 6. Re: Seam 3 and Spring 3 integration
                    asookazian

                    That's interesting.  So I wonder how that works.  JBoss source is open-source under GPL or whatever licensing scheme.  Can they totally rip off the Conversation API, etc.?


                    They're closing the loop on customers who are thinking about migrating to Seam 3...  It would be nice if they implemented something similar to SMPC as well...

                    • 7. Re: Seam 3 and Spring 3 integration
                      mbogoevici

                      Conversation scope in Spring is essentially about bringing into the core Spring Framework the conversation scope and associated features which were originally part of Spring Web Flow - which also included a conversation-scoped PC. And yes, it's definitely something that needs to be covered under scope/context interoperability.

                      • 8. Re: Seam 3 and Spring 3 integration
                        gonzalad

                        Also :



                        • Perhaps a Seam Security / Spring Security bridge would interest some users (I don't know) ?

                          In my company, I had to bridge Seam Security and Spring Security (I had several custom Spring authentication providers and didn't want to duplicate the code to implement a JAAS module - so I inherited from Seam Identity component and created a SpringIdentity component which calls Spring AuthenticationManager providing a UsernamePasswordAuthenticationToken).

                        • I would have liked to use Seam Application framework with Jdbc

                          I sometimes use Jpa, sometimes not, and having the same action methods for both case simplifies jsf page developement). Don't know if this has anything to do with Seam / Spring Modules (but since I'm using Spring JdbcTemplate for my JDBC calls...



                        I'm not sure those are classic use cases with Seam though.

                        • 9. Re: Seam 3 and Spring 3 integration
                          asookazian

                          I wonder how many projects actually use both frmwks??

                          • 10. Re: Seam 3 and Spring 3 integration
                            asookazian

                            Gonzalez Adrian wrote on Apr 08, 2010 22:20:

                          • I would have liked to use Seam Application framework with Jdbc

                            I sometimes use Jpa, sometimes not, and having the same action methods for both case simplifies jsf page developement). Don't know if this has anything to do with Seam / Spring Modules (but since I'm using Spring JdbcTemplate for my JDBC calls...



                          • I'm not sure those are classic use cases with Seam though.


                            GKing started writing a type-safe version of Spring JdbcTemplate a few months ago.  So that's available for someone to finalize.  He called it sql framework (Seam sql) and the code was emailed on the weld-dev mail list.

                            • 11. Re: Seam 3 and Spring 3 integration
                              gonzalad

                              Thanks Arbi for the info (I looked at it a while ago, but just sticked to Spring JdbcTemplate - I was happier using non type-safe sql Strings ;) ).


                              On the Seam Spring extension : one interesting functionnality is 'Support for hierarchical beanRefFactory in ContextLoader' : JBSEAM-3639

                              • 12. Re: Seam 3 and Spring 3 integration
                                gonzalad

                                Also, with Seam 2, I couldn't use Spring's SpringBeanAutowiringSupport when Spring configuration was loaded by Seam (using components.xml)


                                Could this be fixed with Seam 3 Spring Integration Module ?


                                see : http://seamframework.org/Community/SpringBeanAutowiringSupport


                                Thanks !