|
From: <jue...@we...> - 2003-12-15 07:15:16
|
Hi Ross,
=20
"refresh" is now in ConfigurableApplicationContext, but you shouldn't =
need that for typical usages anyway. I guess what you're trying to do is =
custom initialization of the root WebApplicationContext, storing it in a =
custom place via the setApplicationContext call. That should be fine: I =
suppose that the error you're getting has other origins. Autowiring has =
been significantly reworked; could you check for which components you =
get more than one matching bean? The reason could be that you actually =
*have* multiple matching beans, which just weren't found by M2's =
autowire implementation, maybe due to being created by FactoryBeans. =
Could you quote relevant parts of your configuration?
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Ross Mason
Gesendet: Mo 15.12.2003 07:50
An: spr...@li...
Betreff: [Springframework-developer] Refreshing the =
ApplicationContext...
Hi,
In the latest source the ApplicationContext.refresh() method has been
removed. What is the recommended way of refreshing an
applicationContext now. I'm trying -
ContextLoader loader =3D new ContextLoader();
setApplicationContext(
loader.initWebApplicationContext(servletContext) );
But I am getting an error saying that there is more than one matching
bean on some components when autoWiring by type. Our code and cofig
works fine with M2 release, but we're mored to the latest source to make
use of the OpenSessionInViewFilter.
Any ideas?
Cheers,
Ross
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for =
IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys =
admin.
Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|