what is diffrence between the spring and ejb which is better for small application

what is diffrence between the spring and ejb which is better for small application

what is diffrence between the spring and ejb which is better for small application. and why do we need to use sping or ejb for web appplication.what is diffrence between the struts with spring application and struts without spring application
View Answers

March 31, 2010 at 5:15 PM

Hi Friend,

Difference between Spring and EJB:

1)Spring is an implementation while EJB is a specification.

2)The Spring is an open source application for the Java platform whereas EJB is a server-side component that encapsulates the business logic of an application.

3) EJB can support XA or distributed transactions whereas Spring does not have support for distributed transactions, but it can plug in a JTA Transaction manager.

4) EJB uses deployment descriptor and Spring uses AOP.

5)EJB provides container-managed remote method calls whereas Spring provides proxying for remote calls via RMI, JAX-RPC, and web services.

Thanks









Related Tutorials/Questions & Answers:
what is diffrence between the spring and ejb which is better for small application - Spring
what is diffrence between the spring and ejb which is better for small application  what is diffrence between the spring and ejb which is better... appplication.what is diffrence between the struts with spring application and struts without
What are the differences between EJB and Spring
What are the differences between EJB and Spring   Hi, What are the differences between EJB and Spring Thanks
Advertisements
What is the difference between EJB 3.0 and JPA - Framework
What is the difference between EJB 3.0 and JPA   What is the difference between EJB 3.0 and JPA. How can they work together. Does EJB 3.0 need... which can be used for creating a mapping between plain java bean objects (POJO
what is the difference between distributed application and web application?
what is the difference between distributed application and web application?  what is the difference between distributed application and web application
what is difreence between javabeans and enterprise beans - EJB
what is difreence between javabeans and enterprise beans  what is difreence between javabeans and enterprise beans  Hi Friend... while EJB is designed to work in distributed environment using rmi/iiop protocol
What is the difference between hibernate and spring
What is the difference between hibernate and spring  Hi, What is the difference between hibernate and spring. Thanks
What are difference between Bean Factory and Application Context ?
What are difference between Bean Factory and Application Context ?  Hi, What are difference between Bean Factory and Application Context
display diffrence between two dates in a text box - JSP-Servlet
display diffrence between two dates in a text box  i have these set of codes // String di=request.getParameter("timestamp2"); String d2=request.getParameter("timestamp3"); SimpleDateFormat formater=new SimpleDateFormat("dd-mm
which is better - Subversion
which is better  Dear sir, Could u pls tell which version control is better among the following four. Subversion, git, bazaar, Mercurial
Which is better DataCamp or Dataquest?
Which is better DataCamp or Dataquest?  Hi, I am beginner in Data...: Which is better DataCamp or Dataquest? Try to provide me good examples or tutorials links so that I can learn the topic "Which is better DataCamp
Which is better udemy or DataCamp?
Which is better udemy or DataCamp?  Hi, I am beginner in Data...: Which is better udemy or DataCamp? Try to provide me good examples or tutorials links so that I can learn the topic "Which is better udemy or DataCamp?"
Which is better SAS or SPSS?
Which is better SAS or SPSS?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Which... can learn the topic "Which is better SAS or SPSS?". Also tell me
Which country is better for Masters?
Which country is better for Masters?  Hi, I am beginner in Data...: Which country is better for Masters? Try to provide me good examples or tutorials links so that I can learn the topic "Which country is better for Masters
Which is better DataCamp or Coursera?
Which is better DataCamp or Coursera?  Hi, I am beginner in Data...: Which is better DataCamp or Coursera? Try to provide me good examples or tutorials links so that I can learn the topic "Which is better DataCamp
Which is better MBA or MSC?
Which is better MBA or MSC?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Which... can learn the topic "Which is better MBA or MSC?". Also tell me which
Difference between EJB 2 and EJB 3 - EJB
Difference between EJB 2 and EJB 3  I know we dont implement home and remote interfaces. 1)Do we have ejb-jar.xml in EJB 3.0...? What do they exactly do? 4) How does the bean lookup start in EJB 3 and how
php or java which is better
php or java which is better  Confused which is best
which one is better Struts2 or JSF
which one is better Struts2 or JSF  Which framework is better for the development of core banking solution for the presentation layer Struts2 or JSF2.Request you to explain with the valide reason. Thanks in Advance
which one is better, Flex or Java?
which one is better, Flex or Java?  Does flex has a scope to survive in IT? Which one of these two, Flex and Java, has a better scope of survival
Which is better AI or data science?
Which is better AI or data science?  Hi, I am beginner in Data...: Which is better AI or data science? Try to provide me good examples or tutorials links so that I can learn the topic "Which is better AI or data science
Which is better Siri Alexa or Google?
Which is better Siri Alexa or Google?  Hi, I am beginner in Data...: Which is better Siri Alexa or Google? Try to provide me good examples or tutorials links so that I can learn the topic "Which is better Siri Alexa
Which is better for AI Java or Python?
Which is better for AI Java or Python?  Hi, I am beginner in Data...: Which is better for AI Java or Python? Try to provide me good examples or tutorials links so that I can learn the topic "Which is better for AI Java
which is better server for java applications? apache or jboss?
which is better server for java applications? apache or jboss?  which is better server? apache or jboss
Difference between JDBC , Entity Beans in EJB 3.0,Hibernate - EJB
Difference between JDBC , Entity Beans in EJB 3.0,Hibernate  What is difference between JDBC 2.0, Entity Bean in EJB 2.0, Hibernate, Entity Bean in EJB 3.0  Hi Friend, Please visit the following links to know about
What is the difference between the >> and >>> operators?
What is the difference between the >> and >>> operators?   hi, What is the difference between the >> and >>> operators? Thanks
Which is better big data or data science?
Which is better big data or data science?  Hi, I am beginner in Data...: Which is better big data or data science? Try to provide me good examples or tutorials links so that I can learn the topic "Which is better big data
Which is better AI ml or data science?
Which is better AI ml or data science?  Hi, I am beginner in Data...: Which is better AI ml or data science? Try to provide me good examples or tutorials links so that I can learn the topic "Which is better AI ml or data
Which is better data science or software engineering?
Which is better data science or software engineering?  Hi, I am... for the tutorials to learn: Which is better data science or software engineering? Try...;Which is better data science or software engineering?". Also tell me which
Which is better data science or computer science?
Which is better data science or computer science?  Hi, I am beginner... to learn: Which is better data science or computer science? Try to provide me... is better data science or computer science?". Also tell me which is the good
Problem in EJB application creation - EJB
Problem in EJB application creation  Hi, I am new to EJB 3.0... application. 1. I would like to know how to associate an Entity bean class... getting the following error message when running an enterprise application
Which gives better performace Stack vs Arraylist
Which gives better performace Stack vs Arraylist  I want to implemet a generic Stack implementation. I am confused whether to use java.util.Stack class or to simulate ArrayList as Stack? I am very much concerned about performance
what is the difference between extends and implements
what is the difference between extends and implements  difference between extends and implements
what is the difference between extends and implements
what is the difference between extends and implements  difference between extends and implements
EJB based application
EJB based application  Project description The project has two separate parts, the client GUI application and the server application. The Client... with the instructions to the server of what to do. (Java object serialization). The Server
What is the difference between PHP4 and PHP5?
What is the difference between PHP4 and PHP5?  What is the difference between PHP4 and PHP5
What is difference between a PROCEDURE & FUNCTION ?
What is difference between a PROCEDURE & FUNCTION ?  What is difference between a PROCEDURE & FUNCTION
What is the difference between $message and $$message?
What is the difference between $message and $$message?  What is the difference between $message and $$message
what is the Difference between weblogic and jboss?
what is the Difference between weblogic and jboss?  what is the Difference between weblogic and jboss
what is the difference between pop and oop
what is the difference between pop and oop  what is the difference between pop and oop
What is the difference between a constructor and a method?
What is the difference between a constructor and a method?  Hi, What is the difference between a constructor and a method?   Hi, I have found a good link of Java program related to difference between constructor
What is the difference between a JDK and a JVM?
What is the difference between a JDK and a JVM?  Hi, What is the difference between a JDK and a JVM? Thanks,   Hi, JDK is stand for Java Development Kit and it is used for application development purpose
Nota ble to build EJB application - EJB
Nota ble to build EJB application  hi , am beginner to EJB i tried this building EJB application am getting follwoing error BUILD FAILED D.... while setting ejb doclet in Preferences i haven't set any thing in like jboss
What is difference between the java and javascript?
What is difference between the java and javascript?  What is the difference beteen the java and javascript?   Hello Friend, Read HereADS_TO_REPLACE_1 Thanks
ssl comunication between a desktop application and a web application
ssl comunication between a desktop application and a web application  Hi Lusiano, I am trying to implement a ssl comunication between a desktop application and a web application. can you please share code with me. Please
What is difference between Path and Classpath?
What is difference between Path and Classpath?   hi What is difference between Path and Classpath? thanks   Hi, The Path & Classpath are used for operating system level environment variales. We mostly use Path
What is EJB 3.0?
What is EJB 3.0       This lesson introduces you with EJB 3.0, which is being used extensively for developement of robust, scalable and secure applications. What is EJB?ADS
What is PHP ?
What is PHP? PHP is an acronym stand for Hypertext PreProcessor. It is an open source scripting language which is used for web development and can be embedded... on July 13, 2004 powered by the new Zend Engine II. PHP 5 included better support
What is difference between TRUNCATE & DELETE
What is difference between TRUNCATE & DELETE   What is difference between TRUNCATE & DELETE?   Hi, The DELETE command is used to remove rows from a table. A WHERE clause can be used to only remove some rows
Difference between Struts and Spring
Difference between Struts and Spring  What are the difference between Struts and Spring?   Hi Friend, Differences: 1)Struts is a web framework while Spring is not. 2)Spring is a Layered Architecture while Struts
What is the difference between JPA and Hibernate?
What is the difference between JPA and Hibernate?  Hi, I have seen... it for enterprise applications and there is good demand in market. What is the difference between JPA and Hibernate? What a beginner should learn? Thanks   Hi

Ads