Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

What is EJB ?

  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I work in banking project . Why we use EJB ? What is the new with EJB ? How a transaction is secure in EJB ?
 
Bartender
Posts: 4106
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Why we use EJB ?


There are many ways you can develop enterprise level applications and there are various factors other than the business logic to run the application successfully. EJB promotes component based development with the specification providing the required services (security, transactions etc...) which are to be implemented by the vendor of that implementation. And there are many frameworks/libraries available like Spring/Hibernate combination which you can achieve the most of them. But EJB has been the role model perhaps that other frameworks have adapted (and simplified compared to earlier versions of EJB spec) features from.

How a transaction is secure in EJB ?


When you use transactions the container make sure those are either committed or rolled back so the developer is freed from handling that complexity.

What is the new with EJB ?


Some helpful content here: New in EJB 3 & New in EJB 3.1
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Anandhakrishnan Venkataramanan wrote:I work in banking project . Why we use EJB ? What is the new with EJB ? How a transaction is secure in EJB ?




I am more comfortable with with Java Spring comparatively to EJB architecture as there are lots diffrence ex : for Transaction management

EJB:

Must use a JTA transaction manager.
Supports transactions that span remote method calls.

Spring:

Supports multiple transaction environments through its PlatformTransactionManager interface, including JTA, Hibernate, JDO, and JDBC.
Does not natively support distributed transactions—it must be used with a JTA transaction manager.

Persistence

EJB:

Supports programmatic bean-managed persistence and declarative container managed persistence.

Spring

Provides a framework for integrating with several persistence technologies, including JDBC, Hibernate, JDO, and iBATIS.

 
Vijitha Kumara
Bartender
Posts: 4106
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch, David Horn!
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!