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
posted
0
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
posted
0
Thank you very much...
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35257
7
posted
0
If it's just the EJB API you wish to avoid, then there are alternatives like Hibernate (which has its own API).
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.
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.
yes, Spring offers the "lighter" of EJB version..
Spring also provides API to wraps up Hibernate through HibernateTemplate..
it could ran in TomcatServlet 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]