File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes JSPs are not managed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "JSPs are not managed?" Watch "JSPs are not managed?" New topic

JSPs are not managed?

Mark Garland
Ranch Hand

Joined: Nov 11, 2006
Posts: 226

I'm reading EJB3 in Action, page 440.

The authors are discussing how you only get DI if the classes are "managed" - i.e. their lifecycle is managed by the container.

Servlets are listed as managed, and so get DI.
JSPs are listed as not getting DI.

But isn't a JSP just compiled into a Servlet anyhow? Seems an odd distinction?



28/06/06 - SCJP - 69%, 05/06/07 - SCWCD - 92%, 28/02/08 - IBM DB2 v9 Fundamentals (Exam 730) - 87%, 18/11/08 - IBM DB2 v9 DBA (Exam 731) - 89%, 26/02/11 - SCBCD - 88%
I agree. Here's the link:
subject: JSPs are not managed?
It's not a secret anymore!