Bootstrap Spring in a J2ee Application.
I have seen documented a nice declarative approach to bootstap Spring (load the application context xml) in a web-app through the web.xml like so:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/daoContext.xml /WEB-INF/applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
</listener>
I have a enterprise app deployed as an ear file but with no web-app element. Is there any declarative way to bootstap Spring in such an application? Can anyone suggest a nice clean way to bootstrap Spring in an enterprise app.
Any suggestions are most welcome.