View Full Version : Can someone explain to me what the web-application-config.xml file is?
macdoug1
Jan 9th, 2009, 11:43 AM
I'm using the examples that Jeremy provided to configure my project to talk to BlazeDS. My problem with some of the examples is that they don't explain where the applicationContext.xml fits in and if the web-application-config.xml is a new file need for blazeds config or if this is a replacement file for the applicationContext.xml or the servletContext.xml. Anyway I asked the other day if anyone could explain this and haven't seen anything yet. I've been trying to get my web.xml configured to run with what I've seen in the examples but again I'm unsure of what some of these files are for. I've got the services-config.xml, proxy-config.xml and the remoting-config.xml files exactly as mentioned but the web.xml and the applicationContext.xml and how they fit in here are a bit scatchy. Anyway as I mentioned before I'm using iBatis, with Spring2.5.5 and BlazeDS3.2.
Can anyone explain this?
Thanks.
jeremyg484
Jan 9th, 2009, 12:51 PM
web-application-config.xml is a Spring application context file, just like applicationContext.xml. You are free to name Spring XML files whatever you like, this is simply what we chose for this application.
macdoug1
Jan 9th, 2009, 01:29 PM
So in the web.xml do I need to include the ContextLoaderServlet? Tomcat5.5
<listener>
<listener-class>org.springframework.web.context.ContextLoaderServl et</listener-class>
</listener>
The reason I ask is I don't see that in your examples.
Thanks.
jeremyg484
Jan 9th, 2009, 02:19 PM
No...the DispatcherServlet loads up the Spring application context in this particular case.
macdoug1
Jan 9th, 2009, 03:35 PM
I got it working! Thanks for your help. I really like this method over using the SpringFactory class. Anyway again thanks and I can't wait to see the future of this piece of Spring.
macdoug1
Jan 9th, 2009, 04:49 PM
So if I wanted to do polling of things like IM with someone does the Spring framework support that currently or is that to come?
jeremyg484
Jan 12th, 2009, 08:14 AM
That is to come in our future integration with the BlazeDS messaging service.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.