Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6548699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:00:05+00:00 2026-05-25T12:00:05+00:00

I have an application which are using Hibernate / Spring and Spring MVC, but

  • 0

I have an application which are using Hibernate / Spring and Spring MVC, but as a motivation to learn and also compare the differences I want to port the application to an Hibernate / Guice / Wicket.

The questions I have are pretty basic, but where do I start. Should I start with replacing the Spring layer, then the Spring MVC layer?

Can the two work i the same environment, so that I can start with editing just one controller/view and then expand, and how do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:00:06+00:00Added an answer on May 25, 2026 at 12:00 pm
    1. Start with the view:

      Spring MVC won’t work without Spring anyway. And since other layers don’t depend on its API (well, shouldn’t, at least), the presentation layer should be the easiest to change (although the one that will take most of the effort, since it will consist in a complete reimplementation).

    2. Go after Spring:

      a) If you don’t use much of Spring’s utility classes (*Template, *DaoSupport, etc.) or infrastructure (transaction management, security), migrating to Guice would probably be a matter of rewriting (XML- or annotation-based) configuration in Guice modules/annotations, since pure dependency injection, if not portable, is pretty much directly mapped between the frameworks.

      b) If you do use Spring’s utility classes and infrastructure (which you probably do, since that’s the whole point of using Spring instead of no-value-added-yet-another-dependency-injection-containers…), you’ll have to migrate them to Guice somehow. If you plan to do this incrementally, you could look for some integration between the two (probably using the Spring infrastructure from Guice), and after you migrated the depedencies, switch to Guice-native interceptor implementations (and test, test, test, since little differences in behavior could break your application). This other question may provide some tips on this.

    3. Then, Hibernate:

      Since you’ll be keeping Hibernate, its configurations shouldn’t be affected by the transition. Only its bootstrap will change when you migrate your infrastructure and configuration to Guice. I don’t recommend keeping two parallel SessionFactories, if you can avoid it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have java application with web interface (Spring MVC) using Hibernate. I have quite
I have a Spring application which uses Hibernate on a PostgreSQL database. I'm trying
I am building web application using Spring MVC Spring Security Hibenate MySQl I want
I'm interested in porting an existing application which was written using Spring/Struts2/Hibernate to GAE.
So I've got a simple web application using Spring MVC + Hibernate and am
I'm using Hibernate with Spring in my application. I have been consistently using detached
I have a Web application using spring and hibernate and struts (it runs on
We have a web application which uses Struts 2, Spring and Hibernate. Currently a
I build an application which use Hibernate JPA2 + Spring. I have problem with
I have integrated spring security plugin with my grails application, which has hibernate as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.