There are so many things are common in in EJB3 and Spring 3 with hibernate.
I need to findout where I can use Spring framework with hibernate not EJB3 and viceversa.
There are so many things are common in in EJB3 and Spring 3 with
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use them interchangeably.
If you go with EJB3, you’ll have to have a full Java EE, EJB3 app server. Some are free, some are not.
If you go with Spring 3, you need to have the Spring JARs in your CLASSPATH, but a full Java EE app server is not required. Tomcat or Jetty are sufficient, depending on your needs.
There are multiple vendors for EJB3 implementations; after all, EJB3 is merely a specification. There’s only one vendor for Spring.
Personally, I prefer Spring. I’ve used it for six years, since version 1.0, with great success. It’s a very high quality framework. EJB3 took a great deal from the lessons learned by Spring and Hibernate. I think Spring’s aspect-oriented programming is better than what has been added to EJB3. The other modules (e.g. security, LDAP, web services, etc.) are excellent.