This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to Java Spring

 
Abhi Kumar
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.
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check your private messages for an important message.
 
Jair Rillo Junior
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 )
 
Harshit Rastogi
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic