File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Spring and EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Spring and EJB" Watch "Spring and EJB" New topic
Author

Spring and EJB

David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
I'm new to Spring and EJB's as well. Is there any relationship between Spring and EJB technology?


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8876

Here is a sample from the book
http://www.onjava.com/pub/a/onjava/excerpt/BFLJava_chap8/


Groovy
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
If I understood it good, Spring just simulate the EJB's, right?
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
Originally posted by David Ulicny:
If I understood it good, Spring just simulate the EJB's, right?


Spring is more like a light weight approach to what EJBs are trying to achieve.

It is more of a replacement for some parts of EJB spec that are not easy to work with & unnecessarily complicated( like entity beans)


Kishore
SCJP, blog
Susanta Chatterjee
Ranch Hand

Joined: Aug 12, 2002
Posts: 102
Hi,

Spring is more of a framework. Please read this.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by David Ulicny:
I'm new to Spring and EJB's as well. Is there any relationship between Spring and EJB technology?


Spring can make the use of EJB an implementation choice, rather than the determinant of application architecture. You can choose to implement business interfaces as POJOs or local EJBs without affecting calling code.

Spring helps you solve many problems without using EJB. Spring can provide an alternative to EJB that�s appropriate for many web applications. For example, Spring can use AOP to deliver declarative transaction management without using an EJB container; even without a JTA implementation, if you only need to work with a single database.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by David Ulicny:
If I understood it good, Spring just simulate the EJB's, right?


Spring can make the use of EJB an implementation choice, rather than the determinant of application architecture. You can choose to implement business interfaces as POJOs or local EJBs without affecting calling code.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
SpringFramework Website
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Spring and EJB
 
Similar Threads
Spring RMI Vs EJB RMI
What study after Head First - Servlet & JSP
Advantages of EJB
Spring Framework
Frameworks according to layers