8.5 Using JDO without the J2EE Connector Architecture


As has already been outlined, JDO can be used with Servlets without needing to use a J2EE Connector Architecture resource adapter. In this case, the Servlet is the same as any other unmanaged JDO application. Likewise, if an EJB does not require container-managed transactions, then it is not necessary to use a J2EE Connector Architecture resource adapter.

Depending on needs, the Servlet or EJB can rely on the connection pooling provided by JDO implementation's PersistenceManagerFactory or instead configure an external connection factory using the ConnectionFactory or ConnectionFactoryName PersistenceManagerFactory properties. See Chapter 5 for more details on creating a PersistenceManagerFactory instance in this way.



Core Java Data Objects
Core Java Data Objects
ISBN: 0131407317
EAN: 2147483647
Year: 2003
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net