File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Can JSP and Servlets do everything doing by EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Can JSP and Servlets do everything doing by EJB" Watch "Can JSP and Servlets do everything doing by EJB" New topic
Author

Can JSP and Servlets do everything doing by EJB

Harshani Wickramarathna
Greenhorn

Joined: Nov 15, 2007
Posts: 28

Hi,

Please let me know whether we can use JSP and Servlets to do everything we have done using EJB?
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Yes, you could implement all the services provided by EJB3 yourself with servlet+jsp and POJOS, but depending on which features you need, this could mean a lot of additional work...


OCJP 6 (93%)
Harshani Wickramarathna
Greenhorn

Joined: Nov 15, 2007
Posts: 28
Thank you very much...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42913
    
  68
If it's just the EJB API you wish to avoid, then there are alternatives like Hibernate (which has its own API).
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Ulf Dittmer wrote:If it's just the EJB API you wish to avoid, then there are alternatives like Hibernate (which has its own API).


Did you mean JPA?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42913
    
  68
No, I meant Hibernate's own API.
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Ulf Dittmer wrote:No, I meant Hibernate's own API.


As a replacement for EJB or JPA..?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Neither. Hibernate is a JPA implementation, and has its own non-standard ORM API. As far as an EJB replacement goes, it could be used to replace Entity beans only.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9618
    
    2

Ulf Dittmer wrote:No, I meant Hibernate's own API.


Hibernate is just an ORM framework and a reference implementation of the JPA standard. I can imagine Spring + Hibernate as a replacement for EJB and not just Hibernate.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

yes, Spring offers the "lighter" of EJB version..
Spring also provides API to wraps up Hibernate through HibernateTemplate..
it could ran in Tomcat Servlet container..
but, i think EJB3.1 is good news also for EJB developer..
it could ran in lighter EJB Container, such as Glassfish V3..


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can JSP and Servlets do everything doing by EJB