aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes What is EJB ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "What is EJB ?" Watch "What is EJB ?" New topic
Author

What is EJB ?

Anandhakrishnan Venkataramanan
Greenhorn

Joined: Feb 11, 2011
Posts: 2

I work in banking project . Why we use EJB ? What is the new with EJB ? How a transaction is secure in EJB ?
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3829

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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
david horn
Greenhorn

Joined: Aug 11, 2011
Posts: 1
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

Joined: Mar 24, 2008
Posts: 3829

Welcome to CodeRanch, David Horn!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is EJB ?