<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spring application context loading tricks</title>
	<atom:link href="http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/</link>
	<description>A weblog about software engineering, Architecture, Technology an other things we like.</description>
	<lastBuildDate>Thu, 29 Jul 2010 07:45:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ben</title>
		<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/comment-page-1/#comment-30373</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 26 May 2010 13:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/#comment-30373</guid>
		<description>Manish,

In my experience the JVM doesn&#039;t lie to you when reporting errors. If it&#039;s throwing a FileNotFoundException, the file simply isn&#039;t being found.

I&#039;d start by checking out options to print the classpath on server and application start (there&#039;s sure to be a diagnostic option for this), then take a good look at your package. From your description I&#039;m willing to bet your second project package isn&#039;t on the classpath of the first.</description>
		<content:encoded><![CDATA[<p>Manish,</p>
<p>In my experience the JVM doesn&#8217;t lie to you when reporting errors. If it&#8217;s throwing a FileNotFoundException, the file simply isn&#8217;t being found.</p>
<p>I&#8217;d start by checking out options to print the classpath on server and application start (there&#8217;s sure to be a diagnostic option for this), then take a good look at your package. From your description I&#8217;m willing to bet your second project package isn&#8217;t on the classpath of the first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/comment-page-1/#comment-30372</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Tue, 25 May 2010 09:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/#comment-30372</guid>
		<description>related to SOM&#039;s Question, I am trying to use 2 XML files in application context - one is in the same project and 2nd in another project. This 2nd project has been added to my current project and the context in web.xml is

        
		contextConfigLocation
		
			/WEB-INF/eu24ui-servlet.xml
			classpath:spring-ds.xml
			classpath:spring-hibernate-iocm.xml
		
	
But when I try to start the jboss server.. it throws fileNotFoundException.
Need help.</description>
		<content:encoded><![CDATA[<p>related to SOM&#8217;s Question, I am trying to use 2 XML files in application context &#8211; one is in the same project and 2nd in another project. This 2nd project has been added to my current project and the context in web.xml is</p>
<p>		contextConfigLocation</p>
<p>			/WEB-INF/eu24ui-servlet.xml<br />
			classpath:spring-ds.xml<br />
			classpath:spring-hibernate-iocm.xml</p>
<p>But when I try to start the jboss server.. it throws fileNotFoundException.<br />
Need help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis</title>
		<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/comment-page-1/#comment-25500</link>
		<dc:creator>Denis</dc:creator>
		<pubDate>Thu, 13 Aug 2009 09:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/#comment-25500</guid>
		<description>Hi Ben,

Very nice article. I was looking for the answer described in &quot;Do not ever do this&quot; where I have multiple modules with same application context name. I will use module specific names.</description>
		<content:encoded><![CDATA[<p>Hi Ben,</p>
<p>Very nice article. I was looking for the answer described in &#8220;Do not ever do this&#8221; where I have multiple modules with same application context name. I will use module specific names.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/comment-page-1/#comment-11380</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 31 Dec 2008 13:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/#comment-11380</guid>
		<description>Som,

If you want to load files from two different locations using wildcards, the classpath*:-notation is the way to go. 

As for your cross-contextfile dependencies, those will always work; that&#039;s a function of the Spring container. The thing to understand is that you do not get a context PER FILE -- no matter how many context FILES you have, the Spring container always loads them all together and makes one single CONTEXT out of them before initializing your beans. The only way to have multiple contexts in a program is to have the program start two separate instances of the Spring container.</description>
		<content:encoded><![CDATA[<p>Som,</p>
<p>If you want to load files from two different locations using wildcards, the classpath*:-notation is the way to go. </p>
<p>As for your cross-contextfile dependencies, those will always work; that&#8217;s a function of the Spring container. The thing to understand is that you do not get a context PER FILE &#8212; no matter how many context FILES you have, the Spring container always loads them all together and makes one single CONTEXT out of them before initializing your beans. The only way to have multiple contexts in a program is to have the program start two separate instances of the Spring container.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Som</title>
		<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/comment-page-1/#comment-11376</link>
		<dc:creator>Som</dc:creator>
		<pubDate>Wed, 31 Dec 2008 05:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/#comment-11376</guid>
		<description>What if I want to load two application context files with dependencies like applicationContextTwo uses beans in applicationContextOne and both are in different classpaths.</description>
		<content:encoded><![CDATA[<p>What if I want to load two application context files with dependencies like applicationContextTwo uses beans in applicationContextOne and both are in different classpaths.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Goran</title>
		<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/comment-page-1/#comment-1416</link>
		<dc:creator>Goran</dc:creator>
		<pubDate>Mon, 26 May 2008 14:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/#comment-1416</guid>
		<description>Hehe Ben like always a great read :) Thanks!</description>
		<content:encoded><![CDATA[<p>Hehe Ben like always a great read <img src='http://www.gridshore.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/comment-page-1/#comment-1340</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sun, 18 May 2008 02:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/#comment-1340</guid>
		<description>I agree with Uri. Note that my post was intended as an overview and not so much as a recommendation.</description>
		<content:encoded><![CDATA[<p>I agree with Uri. Note that my post was intended as an overview and not so much as a recommendation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uri</title>
		<link>http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/comment-page-1/#comment-1266</link>
		<dc:creator>Uri</dc:creator>
		<pubDate>Wed, 14 May 2008 07:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/05/13/spring-application-context-loading-tricks/#comment-1266</guid>
		<description>An advantage of explicitly defining the actual application context names (without wildcards) is that it provides you with yet another view of your layered architecture. I personally like to have an application context per layer (e.g. service-layer.xml, data-access-layer.xml, etc...) and each one of these application context is composed out of more functional ones. so all thing related to messaging I would put in messaging.xml and import it in the service-layer.xml context. 

cheers,
Uri</description>
		<content:encoded><![CDATA[<p>An advantage of explicitly defining the actual application context names (without wildcards) is that it provides you with yet another view of your layered architecture. I personally like to have an application context per layer (e.g. service-layer.xml, data-access-layer.xml, etc&#8230;) and each one of these application context is composed out of more functional ones. so all thing related to messaging I would put in messaging.xml and import it in the service-layer.xml context. </p>
<p>cheers,<br />
Uri</p>
]]></content:encoded>
	</item>
</channel>
</rss>
