Reputation: 3868
I need to develop an application for just say,'user entry system' using EJB 3.0, spring and hibernate. Can any one guide me how to start it, or could suggest any site where can i get some sample application using combination of all three. or any person have some demo application . I am really in a mess.
Upvotes: 0
Views: 1736
Reputation: 340708
Combining EJB 3.0 and Spring is a bit unusual since these are competing and largely overlapping technologies.
Nevertheless Spring has a very strong EJB integration that allows you to inject EJBs directly to Spring beans. There is no easy way to achieve this the other way around.
For the Hibernate part, you should have a look at JPA 1.0 (2.0 comes with EJB 3.1 I believe). Hibernate implements this standard, which is part of the EJB spec. JPA also seamlessly integrates with Spring: 13.5 JPA.
Upvotes: 1
Reputation: 3769
I don't see a reason to use Spring with EJB, unless you mean Spring MVC. I would suggest you to use EJB+JPA+CDI(if needed).
Look into some Java EE 6 examples, for example look on the blogs of Adam Bien, BalusC and JDevelopment. They nicely show how easy and simple Java EE is.
Upvotes: 0
Reputation: 2817
I don't see a reason to use EJB with Spring unless you use MDBs. I would suggest you to use Spring+Hibernate+JPA(if needed).
Look into petclinic application provided by springsource. Here is an svn path. Just search for 'Spring petclinic' for more details.
The svn location: https://src.springframework.org/svn/spring-javaconfig/trunk/samples/org.springframework.config.java.samples.petclinic
Upvotes: 0