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 6185431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:42:36+00:00 2026-05-24T01:42:36+00:00

I was going to migrate a desktop application which is done in java in

  • 0

I was going to migrate a desktop application which is done in java in to a web app. It has almost 15 packages and more than 100 classes. And I was planing to use JSF(with Primefaces) + Hibernate + Spring. I have got only a little knowledge about how to integrate Hibernate and Spring and I haven’t integrated them with JSF before. I have only three weeks and I can only spend less than five hour a day on this project.

One of my friend wrote me this (copy and pasted):

“You said you want to import your old project (JSF & Primfaces) to
Spring and Hibernate, you see there are some issues with that: 1- Do
you still want to use JSF as the UI? Or switch to Spring all together.
2- You can have JSF and Spring as the front and back end, and you can
have only Spring (that is my knowledge)

3- If you switch to Spring all together I don’t think you can use
Primefaces anymore (just a guess, since Primefaces is simply a
collection of custom component for JSF).

4- On the other hand JSF is not integrated with Hibernate, you cannot
easily use it. You must use a full Java EE container and have a full Java EE
project that is the only way you can get Persistence and Hibernate in
JSF, otherwise you will end up writing your own Persistence management
layer (not something fun to do) to enable the linking between your JSF
sessions JPA sessions. And many other things to manage transactions
and more.

5- Going with Spring framework is much better, it already supports
Hibernate. “

I think I have misunderstood on managing sessions in JSF and in Hibernate. One thing I wanted to do in this project is, learn the efficient way of using those frameworks together. Even if I found it easy to use JPA to Hibernate, I will do that way. But I have to dig out and read some books and complete the project with in less than 3 weeks.

I came up with this two decisions
1.use either JSF with Hibernate and manage all the transactions.or
2.use JSF + Hibernate + Spring all together … But I need to have a deep understanding of the concepts before integrating them.

Do your have any similar experience? Can you please explain how the concept will look like if I choose no 2? …

  • 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-24T01:42:37+00:00Added an answer on May 24, 2026 at 1:42 am

    So, basically, you are saying you have 75 man-hours (two weeks) to convert what sounds like a fairly complex desktop app into a web app based on an architecture you don’t understand using technologies that you are not sure work well together? I’m going to give you two answers for the price of one..

    Consulting 101
    Unless you have a solid understanding of the architecture involved, be very careful what you promise and include time to research (“fail gracefully”). Keep in mind that you are racing against two calendars: man-hours required to complete the work, and physical due date (not to mention a myriad of “soft” dates: start of testing, “drop-dead” date, design completion date, etc.). Often management drives these kinds of decisions (“we need a web version of this great app/tool!”) without fully understanding what is involved in converting a system.

    The Notes from Your Buddy
    It’s good to hear that you have resources that you can go to when you need help making these decisions. That is going to be key when attempting to tackle this problem. As to his suggestions:

    1. Hard to say here. A lot comes down to what you are familiar with. I am partial to the Spring frameworks myself, as they tend to be fairly small and have a great focus towards integration.
    2. This comes down to how many layers of abstraction you want to have to manage.
    3. I have not tried this specific combination, but a quick search turned up this sample project
    4. I am not sure I understand what your friend is discussing here. We are talking about two completely different concerns: persistence and interface. You can develop a completely new persistence tier based on Hibernate and leverage this tier in your UI, but based on your time frame, it might be easier to develop a solution that is more tightly coupled with your persistence mechanism and work on refactoring it when you have the opportunity (or at the very least, keep very good notes for the next/support developer).
    5. Yes, Spring has integration points for Hibernate. That does not necessarily mean it’s better, however. Keep in mind that has a UI framework available (Spring Web with built-in support for JSF, integration with various persistence frameworks and a fairly solid set of libraries that act as the glue to hold it all together.

    Wrapping It Up
    Returning to what seems to be the core question: What architecture do I choose to convert this desktop application into a web application in two weeks? I hate to give you the common consultant answer, but: It depends. Which which technologies are you most familiar? With which technologies are you willing to take a risk (and full Java EE stack vs. an ORM is a big decision)? What is your goal (are you looking to learn something new, or delivering a working, tested, and satisfactory implementation on-time)? Honestly, this probably isn’t the best answer to the question, however, identifying the real goals involved is one of the key skills of a solid technical lead. My opinion? JFaces + Spring sounds like a decent decision. So does some soul-searching..

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

Sidebar

Related Questions

I'm going to rebuilt an existing moderate-scale web-app to be used for a supply-chain-management
We are going to migrate an application to have it support Unicode and have
I am going to migrate from rails 3 app, that used AR and arel
I am going to migrate a existing application (single machine) to Windows Azure. And
I am trying to migrate a small ASP.NET 'web site' (not web application) to
I currently have a web based private chat application that is going very well.
I'm trying to migrate a desktop application to rails (also dealing with quite old
I'm going to migrate my Android application into WP7 platform. Android one contains heavy
Whats going to be the easiest way to migrate my data in the following
I'm trying to migrate an application using OpenId4Java to Wicket 1.5. Using the migration

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.