Share on Google+Share on Google+

pradeep
what is diffrence between the spring and ejb which is better for small application
1 Answer(s)      7 years ago
Posted in : Spring
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

Ads

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 hibernate and spring
What is the difference between hibernate and spring  Hi, What is the difference between hibernate and spring. Thanks
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 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 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
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
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
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
php or java which is better
php or java which is better  Confused which is best
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 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
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
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
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
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 structure of Spring framework?
What is the structure of Spring framework?  What is the structure... solutions for all you enerprise application. The Spring is nothing but a modular... by you as per you application requirement. For more related to Java Spring
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
Difference between Struts and Spring
To know the difference between Struts and Spring, we must first explain and understand both the frameworks a little. Spring framework is a Java platform... at runtime that reduces the coupling between various modules. Spring provides
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
diff between spring and struts in java
diff between spring and struts in java  diff between spring and struts in java
Which is better .Net or Java?
When a developer needs to choose between Java or .NET to develop a new software system or application, to make this choice one must know the similarities and differences that exist between them. Microsoft .NET is a framework that can
What is Spring framework?
What is Spring framework?  Hi, What is Spring Framework? Thanks
What is Spring's JdbcTemplate ?
What is Spring's JdbcTemplate ?  Hi, What is Spring's JdbcTemplate ? Thanks
What is Spring Integration?
What is Spring Integration?  Hi, What is Spring Integration? Thanks
EJB based application
EJB based application  Project description The project has two separate parts, the client GUI application and the server application. The Client... of what to do. (Java object serialization). The Server The server component
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
What is Spring Framework Architecture ?
What is Spring Framework Architecture ?  Hi, What is Spring Framework Architecture ? Thanks
What are the benefits of Spring framework?
What are the benefits of Spring framework?  Hi, What are the benefits of Spring framework? Thanks
What are the Features of Spring Framework?
What are the Features of Spring Framework?  Hi, What are the Features of Spring Framework? Thanks
What is Spring IOC Container ?
What is Spring IOC Container ?  Hi, What is Spring IOC Container ? Thanks
Tutorials   
Java Spring Hibernate Struts Training spring inteview question You Spring Project is not running java lang incompatibleclasschangeerror quartz spring - Error resolved exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined The import javax.validation cannot be resolved java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence Solving java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.LocalSessionFactoryBean issue What is the maven dependency for spring batch? Hibernate Session Attribute java.lang.ClassNotFoundException: org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSource Testing spring with junit and mock testing in Spring MVC, i would like to download my Mysql database table in pdf,msword,excel formats. java.lang.NoClassDefFoundError: org/hibernate/engine/FilterDefinition error package org.springframework.scheduling.quartz does not exist jquery dependency dropdown box in spring hibernate my sql Server side validation on dynamically generated fields from more than one table on spring framework. What are the new features of Spring 4.1? Append Arguments to the URL quartz schedular in spring mvc Where to download spring framework zip file? Integrating spring 4 with hibernate 4 Learn spring Multiple files upload code using spring mvc 2.0 with xml configuration without using annotations Spring 4 features I need Spring 2.5 example. Please point me towards a good Spring transactional tutorial Could anyone point me towards some good Spring tutorials, Please? What is Spring framework? Spring and hibernate based Online Shopping project with source code How to populate collection like map with annotation in mybatis? Spring Abstraction with Redis Spring framework How to insert and retreive an image in mysql database using spring mvc framework??? CRUD operations in spring mvc 2.5 meenakshi Meenakshi how many scenarios is having to developing web based application by using spring mvc. getting voucherPin parent and child dropdown Spring 3 Spring 3 MVC Login Form Example with Database MySql What is Spring Integration? How to configure Spring using Annotation What is Spring IOC Container ? What is difference between singleton and prototype bean? What are the differences between EJB and Spring What is Spring's JdbcTemplate ?

Ads

 
Advertisement null

Ads