O'Reilly logo

Java™ Data Objects by Robin M. Roos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required