11.10. JDO integration with the web tier

As with EJB components, servlets and JSP may use JDO for object persistence. From the web tier this is typically done in support of HTML websites, enabling the delivery of dynamic content to a client based on parameters in the incoming request, as well as the execution of business transactions in response to these requests.

11.10.1. Servlets

The servlet lifecycle starts with a call to the init() method after the instance has been constructed (Figure 11.5). Subsequently there may be zero, one, or many invocations of its service method in response to HTTP requests. These invocations will usually be on a multithreaded basis requiring explicit synchronization of access to attributes of the servlet class. If ...

Get Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.