• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSPs are not managed?

 
Mark Garland
Ranch Hand
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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?

Thanks,

MG
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic