File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Is spring correct choice? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Is spring correct choice?" Watch "Is spring correct choice?" New topic

Is spring correct choice?

Vivek Kr Agrawal
Ranch Hand

Joined: Sep 08, 2012
Posts: 51

I am developing a small java application which will parse xml data at the backend compare it with the given xsd schema.In the front end user can change the data and once again it will be saved in xml file which will be updated in BLOB field in db. The interface is in jsp and there is one Controller(Servlet) for the entire application. There are several bean class and models in which I have written the business logic. Now I am listening this Spring will make my work easier. I have perused various sites and tutorials but couldn't find any thing concrete.
So my question is this techonology can help me in developing my project and if yes then how?
I have already started developing and almost 50% of code is written. Can I still migrate to Spring?

Thanks in advance.

Vivek Agrawal
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 445

The Spring Framework is all about abstraction. Abstracting the creation of objects/work flow etc.

One advantage in your case would be that you would not be forced to tie your application to a specific implementation of the business logic. You would also have the liberty of changing an implementation con figuratively as well.

You would be adding another layer but I feel the pros out weigh the cons.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
For a small project the best choice is most likely not to use any framework (unless you want to use that project as an opportunity to learn the framework). If the work is already 50% done then the point in time to make implementation decisions is long gone - you should proceed on the path you're on.
Vivek Kr Agrawal
Ranch Hand

Joined: Sep 08, 2012
Posts: 51

@ulf:thanks for valuable suggestion. Can I migrate to Spring later after the project gets completed?
and @Rajkamal:I know about the cons of implementing new framework all over again. But can you tell me what will be the pros in a more specific way?
The project I am developing will be used by a customer and for a long period. They will also give the support and maintainance part it to me atleast for 2 years.
I agree. Here's the link:
subject: Is spring correct choice?
jQuery in Action, 3rd edition