Jon, I think the issue is that Mach-ii listeners are not defined in the Coldspring BeanFactory - thus ColdSpring can't really explicitly wire things to them. I guess you could write some glue code to pull a list of beans out of the factory and programatically register them in mach-ii's app manager, but I'm not sure what that would do to the (mach-ii) framework's operation.
Does that help? -Dave On 4/19/06, Jon Gunnip <[EMAIL PROTECTED]> wrote: > > >From: Chris Scott <[EMAIL PROTECTED]> > >I'm not sure why you can't just have the services injected into your > >listeners via the ColdSpring mach-ii plugin. > > Chris. Thanks. I see that I could use the autowiring, but I prefer to > explicitly map the dependencies between the service components from the > model and the individual listeners. That way I could see who was using > what. > > If I did explicitly map the listeners to the service components, it seems > like I would have to use one xml file for the factory. I think this is not > ideal because I'd have model instantiation code alongside listener setup > code. My idea was to have a listener CS factory find a bean in another > model service component CS factory, but it seems like this is (a) not > possible and (b) not what people desire to do. > > Thanks, > Jon > > > > >On Apr 19, 2006, at 7:13 PM, Jon Gunnip wrote: > > > >> > >>>From: "Sean Corfield" <[EMAIL PROTECTED]> > >>> > 2) I am using MachII and I think I would like to have one factory XML > >>>file > >>> > for my Model and one XML file for instantiating the Model components > >>>in my > >>> > Mach-II listeners. The factory for the Listeners would call > >>>getBean() on > >>> > the factory generated for the Model. > >>> > >>>I'm not sure what you're trying to do here - why would you have two > >>>factories? Your model should not know anything about ColdSpring. > >> > >>I don't think my Model does know anything about ColdSpring. I have some > >>service components in my Model that are instantiated via ColdSpring. I > >>want to have one XML file to create these service components and handle > >>their dependencies. I would use this factory for testing the service > >>components and to generate the service components for Mach-II. I would > >>then like to use another XML file to have ColdSpring pull the service > >>components from the other factory and put the references to them in my > >>listerners. > >> > >>Does that make sense? > >> > >>Jon > >> > >> > >> > > > > > >
