did pretty much the same thing except used the ClassPathXmlApplicationContext
directly:
[code]
public class XFireMatrixSpringServlet extends XFireServlet {
private String xfireBeanName = "xfire";
private XFire xfire;
public void init(ServletConfig servletConfig) throws
ServletException {
String springConfiguration = servletConfig
.getInitParameter("springConfiguration");
String xfireConfiguration = servletConfig
.getInitParameter("xfireConfiguration");
ApplicationContext appContext = new
ClassPathXmlApplicationContext(
new String[] { springConfiguration ,
xfireConfiguration });
xfire = (XFire) appContext.getBean(xfireBeanName, XFire.class);
super.init(servletConfig);
}
public XFire createXFire() {
return xfire;
}
}
[/code]
works fine.
--
View this message in context:
http://www.nabble.com/Either-extend-XFireServlet-or-misunderstanding-Spring-WebApp-tf3804356.html#a10782081
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email