File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

App migration - Struts to spring

 
Bala RThiagarajan
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
In our organization, there is a major migration(around 200 apps) work happening for all struts app to spring. Most of the application are very small application with a max of 3 to 5 main JSPs.

As far as i have seen all app should be rewritten, since jsps has script lets.. validation has been done using JS.. persistence layer should also be modified implementing hibernate.

Give this i am not sure how plan for migration ..from where to start how to start since the the apps are huge in numbers. If any one already worked on such a huge migration projects it will be great if they can throw some light on how to structurise a plan for this.

Like any advised or suggested implementation methodology that could help to save time or make the implementation less tedious.

Thanks
BalaRT
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a compelling reason to migrate?

Personally, I'd first move all Java code out of the JSPs and into the actions. I'd then convert the actions into Spring controllers. I'd leave the data access the same for now (I just don't see how an app with only a couple of pages would benefit from a move to Hibernate, but it depends on information I don't have). If the apps didn't already have back-end validation I'd definitely fix that as it's a huge security risk.

Another option would be to introduce Spring into the existing apps, move data access/services into Spring beans injected into the Struts actions, then convert the apps during naturally-occurring maintenance work.
 
Bala RThiagarajan
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the suggestion .. I think your input will be use full for sure..

regarding your question on reason for migration
Yep .. these app were developed log back i guess when they were using WAS 3.5X version and now we are migrating to WAS 7.0 .. and thats why there is a need for migration.. there are other internal framework related reason as well for this migration.

Kindly let me know if you can provide more thoughts on this..

Once agian thanks a lot for your suggestion ..


 
ratan kamble
Greenhorn
Posts: 2
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friend,
I have written a blog regarding struts to spring3(using annotations) migration. Please check the following link..

http://java-developers-space.blogspot.in/2013/08/struts-to-spring-migration.html

I hope, it will be useful..
 
Jayesh A Lalwani
Rancher
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there scope for reuse of code between apps, you might want to think about designing building blocks around reusable pieces as you migrate to spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic