7 Replies Latest reply on Oct 29, 2011 8:29 AM by pgmjsd

    migrating a Seam 2.x app to Seam 3

    asookazian

      Migration plans, docs, etc.?


      We may be interested in implementing new components in Seam 3 for our existing Seam 2.x project.  Will this require a full refactoring/migration of the existing Seam components?  Obviously we will need to upgrade from Jboss 4.2.x to JBoss 6.


      And what about the seam2-bridge?  What about migration plans for Seam 2.x to Seam 3 in general?  Various libraries will need to be upgraded like JSF, RichFaces, etc.


      Will it be possible to use Seam 3 components and Seam 2.x components in the same app in JBoss 6?  Would that even be recommended?


      Upgrading from Seam 1.2 to Seam 2.0 was not a big deal b/c we could use the same JDK 5 and JBoss 4.2.x...

        • 1. Re: migrating a Seam 2.x app to Seam 3
          asookazian

          The Seam core container was very similar if not mostly the same in 1.2 and 2.0.  From 2.x to 3 this is not the case.  So will it be safe to write new code using Seam 3 API for an existing Seam 2 application?


          I'm trying to understand if we must re-write the Seam 2 code and if we don't and have a heterogeneous Seam 3 app (with legacy Seam 2 code), is that risky, potentially buggy or what?

          • 2. Re: migrating a Seam 2.x app to Seam 3
            josdaniel

            I have similar concerns regarding migration of our Seam 2.2 application currently running on JBoss 5.1.

            • 3. Re: migrating a Seam 2.x app to Seam 3
              nickarls

              How difficult migration is going to be depends on your application. Most things in Seam has similar constructs in CDI. If you use the application framework extensively, it might have some changes (but migration paths will be documented).


              I think that context abuse is one more difficult things to migrate (outjecting stuff to different scopes etc) but usually it's an indicator that the application could use some refactoring in the first place.


              • 4. Re: migrating a Seam 2.x app to Seam 3
                pmuir

                We will offer a way of running Seam 2 apps with Seam 3 as well as migration instructions, or possibly a tool. The exact approach isn't decided yet.

                • 5. Re: migrating a Seam 2.x app to Seam 3
                  nepoez.nepoez.gmail.com

                  Really?  Where is this one year later :p



                  Pete Muir wrote on Apr 26, 2010 14:47:


                  We will offer a way of running Seam 2 apps with Seam 3 as well as migration instructions, or possibly a tool. The exact approach isn't decided yet.


                  Click HELP for text formatting instructions. Then edit this text and check the preview.

                  • 6. Re: migrating a Seam 2.x app to Seam 3
                    shane.bryzak

                    We spent a long time working on this and in the end there were a number of insurmountable obstacles which made it impossible to implement.  We are currently working on a migration guide instead.

                    • 7. Re: migrating a Seam 2.x app to Seam 3
                      pgmjsd

                      Yeah, automating that seems like it would be very difficult.   FWIW, I have been taking some notes on my own wiki about the differences here


                      Although I see you've already been working on the guide page on seamframework.org.