• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

New to Java Spring

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for reading my post.
I'm new to Java Spring and hibernate ?

And I'm having few doubts for you guys ..

1) What are the advantages that I get by using Springs?
2) What are the advantages that I get by using Springs and hibernate together?
3) How Spring is compared to EJB technology?

Any answers are highly appreciative.
My advance thanks for answering to my doubts.
 
Bartender
Posts: 9589
13
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check your private messages for an important message.
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There,

I'll give you few answers (and opinion)

1 - Spring is a complete JEE framework. With Spring, you can make something only possible using a JEE Environment. Also, spring fits well with other frameworks, like Struts 2, JSF, Hibernate, JPA and so on.
The Spring core is its IoC module. Nowadays if you're building a software, you should thing about Unit Testing and consequently you should thing about decoupling. IoC (or simply DI) helps you to Decoupling your objects. Spring IoC module makes it for us.

2 - Spring has a Transaction module. Using that module with Hibernate you won't care about Transaction begin/commit/rollback operation. It helps a lot.

3 - I won't compare them. Although they have similar modules, I still prefer EJB for Enterprise Application (with thousands of users). However, you must use a JEE Server to work with EJB3, as long as you can use a simple Tomcat or Jetty with Spring.
In my opinion: Use Spring for medium application and EJB3 for large applications (and what about small one? well, use Ruby on Rails )
 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Cons pros:
Hi,
Thanks for reading my post.
I'm new to Java Spring and hibernate ?

And I'm having few doubts for you guys ..

1) What are the advantages that I get by using Springs?
2) What are the advantages that I get by using Springs and hibernate together?
3) How Spring is compared to EJB technology?



use can check this link and post your doubt
Spring advantages
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!