GeeCON Prague 2014*
The moose likes Performance and the fly likes New to Java Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Performance
Bookmark "New to Java Spring" Watch "New to Java Spring" New topic
Author

New to Java Spring

Abhi Kumar
Greenhorn

Joined: Sep 11, 2008
Posts: 24
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

Joined: Oct 29, 2001
Posts: 8915
    
    8

Please check your private messages for an important message.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Jair Rillo Junior
Ranch Hand

Joined: Aug 27, 2008
Posts: 114
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 )


Regards, Jair Rillo Junior
http://www.jairrillo.com/blog, SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 5.0, IBM SOA Associate (Test 664).
Harshit Rastogi
Ranch Hand

Joined: Apr 15, 2008
Posts: 131
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


<a href="http://technologiquepanorama.wordpress.com" target="_blank" rel="nofollow">My Techie Blog</a><br /><a href="http://www.java-questions.com" target="_blank" rel="nofollow">Java Questions</a>
 
GeeCON Prague 2014
 
subject: New to Java Spring