my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes EJB Vs Spring 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 "EJB Vs Spring" Watch "EJB Vs Spring" New topic
Author

EJB Vs Spring

Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Hello All
I have used EJBs and I have used Spring for Application development. Now when trying to discuss with out collegues. Some of them argue that EJBs are not required anymore and using spring light weight containers we can establish, transaction, concurrency, lookup and bean support which high end servers can accomplish.

Are they right, In what way does EJB provide use compared to Spring POJOs?

Please provide your 2 cents...

Thanks


SCJP, SCWCD, SCBCD, SCEA 5
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Any one to comment?

Would be much appreciated.
Anand Kumar Singh
Greenhorn

Joined: Oct 18, 2007
Posts: 22
Yes.., they are right, if you will use spring you can get every services
like EJB , without deploying your code , because spring give its own Bean
factory containers, you don�t need to write unnecessary code for Local and Remote interface .


SCJP 5, SCWCD 5, SCBCD 5,
SCEA 5,
OCUP Fundamental,
OCUP Intermediate,
OCUP Advanced,
IBM Certified Solution Designer - Object Oriented Analysis and Design, vUML 2
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 249
Thanks for your reply and if we deploy a spring application in websphere application server and some free App servers like JBoss what would you think the difference will be in terms of performance.

Assuming same database backend will be used and same clustering is done..

If they will be the same what is the use then to buy these expensive APp servers?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Vs Spring