• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is EJB ?

  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch, David Horn!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic