aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Difference between normal method and EJB Method 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 "Difference between normal method and EJB Method" Watch "Difference between normal method and EJB Method" New topic
Author

Difference between normal method and EJB Method

Ast Dayana
Greenhorn

Joined: Oct 12, 2012
Posts: 2
Hi All,

Can anyone tell what is the differnence between hitting normal business method like (addition) and same method in EJB..

Thanks.....

Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1085
    
  10

Hi Ast,
Welcome to the Ranch!

When you run a normal program and hit a method, all this happens within the same program (same JVM, same machine).
With EJB you have the ability to write a program and make it available over the network. The advantage is that you can build 'distributed' applications which can be re-used.
On top of this, EJBs come with lot other stuff like Scalability, Security, Distributed transactions etc.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Ast Dayana
Greenhorn

Joined: Oct 12, 2012
Posts: 2
Hi Ranganathan,

thanks for helped me out..
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1085
    
  10

You're welcome.
 
 
subject: Difference between normal method and EJB Method