• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Reasons for still using the Spring/Hibernate combination even after the advent of EBJ 3.x

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am very curious about your visions on the subject whether we should still use the "old" world combination of Spring and Hibernate after the advent of EJB 3.x. I can still see reasons to use them in a stand alone situation, but now that EJB 3.x has arrived with all the added value of using annotations to request injections from the container, is there still any advantages in using the Spring part of the equation?

Hoping to hear from you,

 
Author
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. With the combination of Spring and Hibernate we do not need the container, and as the result the development, test, and maintenance will speed up and be easier. Additionally, we can use many Spring services including IoC, AOP, and Security and still use the Hibernate JPA implementation to follow the EJB 3.x standard!
 
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ahmad,

Is it correct to say Hibernate JPA implementation to follow EJB 3.x standard require JEE container?

But do we need JEE container if you just follow Hibernate JPA implementation for standalone application?

Thanks.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anil Vupputuri wrote:

But do we need JEE container if you just follow Hibernate JPA implementation for standalone application?



You won't require an application server for using a JPA implementation (like Hibernate) for standalone application.
 
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can run Spring + Hibernate in Tomcat and that is a big plus for me! I do not get into the complexities of an app server :-)
 
Cor Takken
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay,

Ahmed: You bring forward that Spring allows you to use IoC, AOP and Security. This however is now available through EJB3.0 as well (at least in a server environment). You can have the container inject resources, ejbs and loads of other stuff thereby effectively (in my view) establishing an IoC (or at least very near) situation. One has to keep in mind that IoC is a means to an end, not the goal. Security in a server environment can be established using JAAS; I am still trying to find the hooks into AOP. Here I have to conclude that my question has not be answered to the full yet.

Again: in a stand-alone situation Spring acts as the application container offering these services and that is very useful, my question was about Spring in a webserver. Which brings me to the following.
Vyaz: Aren't you just replacing the complexities of a webcontainer with the complexities of configuration in Spring? I can fully understand the choice in certain sitations.

Anyway, I am still very curious about an answer to my original question.

Cor
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic