8, Web
(1) WebApplicationContext
l Application Context is located in the WAR file
Ø Each application has a single root context
Ø The default is: /Web-inf/applicationContext.xml
l Context is loaded under:
Ø ContextLoaderListener (servlet2.4)
Ø ContextLoaderServlet (servlet2.3)
l You can use any web framework, Spring is just as a class library.
l example:
Ø Web.xml
context-param>
listener>
Ø in servlet
WebApplicationContextUtils.GetWebApplicationContext (servletContext);
9, Web MVC
l Refer to "Developoing a Sring Framework MVC Application Step-by-Step" (will be translated)
10, remote access (transotin)
(1) RemoteExporter
l Whole Bean in Context can be output
l RemoteExporter outputs bean by remote service
l Built-in support:
Ø RMI
Ø JAX-RPC
Ø BURLAP
Ø HESSIAN
(2) RMiserviceExporter
l To be output service
Class MyServiceImpl Implements MyService {
...
}
l Service output
Class = "... remoting.rmi.rmiserviceexporter"> Property> Property> bean> 11, more (1) line diagram l Spring1.1 Ø Support JMS Ø Support JMX Ø Rule-based statement verification Ø AOP PointCut Expression Language, JSR175 Preview l Spring1.2 Ø Support OGNL Ø Support JCA Ø Enhance RML support l Spring1.3? Ø JSF Ø Portlets (2) Related projects l Fat Client Platform (Sandbox): Spring RCP l Verification: General verification; attribute l Security: Acegi Security System for Spring (Translator: July 28, 2004, Spring Framework 1.1 RC1 released, compared with 1.0, mainly increases aspectj integration, JMS support, remote access, and web service support, specific content can refer to Spring in the document. Reference.pdf)