|
Hi all!
We're new to Grails, but have an appfuse 1.9.4 application (using Spring, Hibernate, XFire, JSTL, XDoclet, and a lot of custom JS) with several hundred thousand LOC's (almost 200k java with 80k in JSP/JSTL). AppFuse isn't being developed anymore (and migrating to 2.0 was a huge hassle), but we'd like to move toward a modern framework without a complete re-write. What's the best way to tackle migration to Grails? -- Anthony |
|
I don't have a lot of experience migrating, but I did migrate one
project. What I did was to keep the JSPs/Hibernate and all just the way it was. The only conversion that I had to do was convert the log4j to the new config. Everything worked great. I then started moving controllers and JSPs to the GSPs one at a time. I was lucky since in this case they had used uppercase controller/action names so I was able to have upper case as the old code and lower case for the new code. This allowed me to run them both at the same time. I did not convert the Hibernate stuff to Gorm, so I have no experience with that. I was only tasked with converting the controller/view stuff. On Sat, 2010-07-03 at 11:22 -0700, apresley wrote: > Hi all! > > We're new to Grails, but have an appfuse 1.9.4 application (using Spring, > Hibernate, XFire, JSTL, XDoclet, and a lot of custom JS) with several > hundred thousand LOC's (almost 200k java with 80k in JSP/JSTL). > > AppFuse isn't being developed anymore (and migrating to 2.0 was a huge > hassle), but we'd like to move toward a modern framework without a complete > re-write. > > What's the best way to tackle migration to Grails? > > > -- > Anthony --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Scott,
Thanks for the info! Where would we go about placing the JSP's / Hibernate Mapping Files / Spring Controllers / etc... ?? In an ideal world, we'd migrate everything as-is, build new functionality using Grails, and as we touch the old stuff, we'd refactor it to be more of the "Grails" framework. Any pointers on where to get started? -- Anthony On Sat, July 3, 2010 1:40 pm, Scott Burch [via Grails] wrote: > > > > I don't have a lot of experience migrating, but I did migrate one > project. What I did was to keep the JSPs/Hibernate and all just the way > it was. The only conversion that I had to do was convert the log4j to > the new config. Everything worked great. I then started moving > controllers and JSPs to the GSPs one at a time. > > I was lucky since in this case they had used uppercase controller/action > names so I was able to have upper case as the old code and lower case > for the new code. This allowed me to run them both at the same time. > > I did not convert the Hibernate stuff to Gorm, so I have no experience > with that. I was only tasked with converting the controller/view stuff. > > On Sat, 2010-07-03 at 11:22 -0700, apresley wrote: >> Hi all! >> >> We're new to Grails, but have an appfuse 1.9.4 application (using >> Spring, >> Hibernate, XFire, JSTL, XDoclet, and a lot of custom JS) with several >> hundred thousand LOC's (almost 200k java with 80k in JSP/JSTL). >> >> AppFuse isn't being developed anymore (and migrating to 2.0 was a huge >> hassle), but we'd like to move toward a modern framework without a >> complete >> re-write. >> >> What's the best way to tackle migration to Grails? >> >> >> -- >> Anthony > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > > ______________________________________ > View message @ > http://grails.1312388.n4.nabble.com/Migrate-from-appFuse-tp2277360p2277371.html > > To unsubscribe from Migrate from appFuse, click > http://grails.1312388.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YW50aG9ueUB0aW1lZm9yZ2UuY29tfDIyNzczNjB8LTExNDU5MTA3MzQ= > |
|
JSPs go in the web-app directory. That was the other nice thing, that
leaves 'views' for the GSPs. I put the old java files into src/java. I believe I also left the .hbm files in the source right where they were. Again, I did not migrate to GORM, although the grails documentation states that it is possible to do. I did not because the back-end people wanted to stay with Java and did not trust GORM. I think I mentioned before, I did convert the log4j.properties file to the new config, which was a bit of work since the logging was extensive. But, it worked fine after the conversion. On Sun, 2010-07-04 at 19:42 -0700, apresley wrote: > Scott, > > Thanks for the info! > > Where would we go about placing the JSP's / Hibernate Mapping Files / > Spring Controllers / etc... ?? > > In an ideal world, we'd migrate everything as-is, build new > functionality > using Grails, and as we touch the old stuff, we'd refactor it to be > more > of the "Grails" framework. > > Any pointers on where to get started? > > > -- > Anthony > > On Sat, July 3, 2010 1:40 pm, Scott Burch [via Grails] wrote: > > > > > > > > > I don't have a lot of experience migrating, but I did migrate one > > project. What I did was to keep the JSPs/Hibernate and all just the > way > > it was. The only conversion that I had to do was convert the log4j > to > > the new config. Everything worked great. I then started moving > > controllers and JSPs to the GSPs one at a time. > > > > I was lucky since in this case they had used uppercase > controller/action > > names so I was able to have upper case as the old code and lower > case > > for the new code. This allowed me to run them both at the same > time. > > > > I did not convert the Hibernate stuff to Gorm, so I have no > experience > > with that. I was only tasked with converting the controller/view > stuff. > > > > On Sat, 2010-07-03 at 11:22 -0700, apresley wrote: > >> Hi all! > >> > >> We're new to Grails, but have an appfuse 1.9.4 application (using > >> Spring, > >> Hibernate, XFire, JSTL, XDoclet, and a lot of custom JS) with > several > >> hundred thousand LOC's (almost 200k java with 80k in JSP/JSTL). > >> > >> AppFuse isn't being developed anymore (and migrating to 2.0 was a > huge > >> hassle), but we'd like to move toward a modern framework without a > >> complete > >> re-write. > >> > >> What's the best way to tackle migration to Grails? > >> > >> > >> -- > >> Anthony > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > ______________________________________ > > View message @ > > > http://grails.1312388.n4.nabble.com/Migrate-from-appFuse-tp2277360p2277371.html > > > > To unsubscribe from Migrate from appFuse, click > > <Link Removed> > > > > > > > ______________________________________________________________________ > View this message in context: Re: Migrate from appFuse > Sent from the Grails - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by apresley
Hope this diagram helps -
http://fbflex.wordpress.com/2010/03/08/migrating-a-spring-application-to-grails-where-do-i-put-all-my-stuff/ in our migration, we kept the existing applicationContext mapping files and added these to conf/spring/resources.groovy --- beans = { importBeans( "classpath:applicationContextMyApp.xml" ) } On Mon, Jul 5, 2010 at 3:42 AM, apresley <[hidden email]> wrote: > Scott, > > Thanks for the info! > > Where would we go about placing the JSP's / Hibernate Mapping Files / > Spring Controllers / etc... ?? > > In an ideal world, we'd migrate everything as-is, build new functionality > using Grails, and as we touch the old stuff, we'd refactor it to be more > of the "Grails" framework. > > Any pointers on where to get started? > > > -- > Anthony > > On Sat, July 3, 2010 1:40 pm, Scott Burch [via Grails] wrote: >> >> >> >> I don't have a lot of experience migrating, but I did migrate one >> project. What I did was to keep the JSPs/Hibernate and all just the way >> it was. The only conversion that I had to do was convert the log4j to >> the new config. Everything worked great. I then started moving >> controllers and JSPs to the GSPs one at a time. >> >> I was lucky since in this case they had used uppercase controller/action >> names so I was able to have upper case as the old code and lower case >> for the new code. This allowed me to run them both at the same time. >> >> I did not convert the Hibernate stuff to Gorm, so I have no experience >> with that. I was only tasked with converting the controller/view stuff. >> >> On Sat, 2010-07-03 at 11:22 -0700, apresley wrote: >>> Hi all! >>> >>> We're new to Grails, but have an appfuse 1.9.4 application (using >>> Spring, >>> Hibernate, XFire, JSTL, XDoclet, and a lot of custom JS) with several >>> hundred thousand LOC's (almost 200k java with 80k in JSP/JSTL). >>> >>> AppFuse isn't being developed anymore (and migrating to 2.0 was a huge >>> hassle), but we'd like to move toward a modern framework without a >>> complete >>> re-write. >>> >>> What's the best way to tackle migration to Grails? >>> >>> >>> -- >>> Anthony >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> >> ______________________________________ >> View message @ >> >> http://grails.1312388.n4.nabble.com/Migrate-from-appFuse-tp2277360p2277371.html >> >> To unsubscribe from Migrate from appFuse, click >> <Link Removed> >> > > > ________________________________ > View this message in context: Re: Migrate from appFuse > Sent from the Grails - user mailing list archive at Nabble.com. > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
