Hi,
I have been using Spring AS with PureMVC recently. Here's how I initialize the context inside a popup control:
The first time when I open the control, everything works fine. However, when I try opening it again, I hit an error mentioned in the title.Code:_facade = ApplicationFacade.getInstance( this.getModuleKey(), "resources/context/applicationContext.xml" ); _facade.addEventListener(Event.COMPLETE, startupModule); _facade.initializeIocContainer(null);
I traced the source and found it's thrown from this line:Error: IoC conatiner is already initialized
I guess it's probably due to the improper termination of the IoC container. Can anyone tell me the right way of doing this? Or is there a method to check whether the container has been initialized so that I don't have to initialize it again?Code:_facade.initializeIocContainer(null);
Thanks


Reply With Quote
