Java Reference
In-Depth Information
C
<filter>
<filter-name>OpenPersistenceManagerInViewFilter</filter-name>
bb <filter-class>
bb org.springframework.orm.jdo.support.
bb OpenPersistenceManagerInViewFilter
bb </filter-class>
bb <init-param>
<param-name>persistenceManagerFactoryBeanName</param-name>
<param-value>myPersistenceManagerFactory</param-value>
</init-param>
</filter>
D
<filter-mapping>
<filter-name>OpenPersistenceManagerInViewFilter</filter-name>
b <url-pattern>/*</url-pattern>
</filter-mapping>
E
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.
bbb b ContextLoaderServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
F
<servlet>
<servlet-name>UpdateDeliveryInfoServlet</servlet-name>
<servlet-class>
net.chrisrichardson.foodToGo.ui.domain.servlets.
b bb UpdateDeliveryInfoServlet
</servlet-class>
</servlet>
</web-app>
Let's look at the details:
B
The web application context parameter contextConfigLocation lists the XML files
that define the Spring beans, including placeOrderService-exposedDomain-
beans.xml.
The OpenPersistenceManagerInViewFilter is configured to use the session factory
named myPersistenceManagerFactory , which it retrieves from the web applica-
tion's WebApplicationContext .
C
Search WWH ::




Custom Search