Hello Geert, now theres another, similar problem.
We set our DAO (hibernate persistence) references with spring. This works now fine for elements. But i also implemented a blocking participant, which initialises the database on startup, which means during development i push some sample data to the database every time rife starts up. The problem now is, that the in spring registered bean isnt set in the blocking participant. (the access fails with null pointer) Because now rife handles the applicationContext, i also could not call spring directly, because then there would be two instances. Have you any suggestions how to add IoC to rifes blocking participants? Thanks a lot :) Geert Bevin schrieb: > Hi, glad you figured it out and sorry I didn't respond earlier. RIFE > just passes this on to > WebApplicationContextUtils.getWebApplicationContext and set the > ContextLoader.CONFIG_LOCATION_PARAM with the value you provide. > > Best regards, > > Geert > > On 6/11/07, Mork0075 <[EMAIL PROTECTED]> wrote: > >> Ok, it looks like i solved it. My location of the context is >> 'config/spring/applicationConfig.xml' where config is a source folder. >> So the correct path is 'spring/applicationConfig.xml' >> >> Mork schrieb: >> >>> Another question is: Spring supports the ApplicationContext being set either >>> by xml file or programmatically via a Java class. Is the second one also >>> supported by rife? >>> >>> Mork wrote: >>> >>> >>>> Hello, >>>> >>>> i would like to use the spring integration of rife. I use the >>>> AutowiringParticipantSpringWeb class from the wiki. The problem is, that >>>> my applicationContext xml is not found: >>>> >>>> <participant param="config/spring/applicationConfig.xml"> causes a >>>> FileNotFoundException although this is the correct path (the >>>> applicationContext is named applicationConfig.xml). Also the leading >>>> "classpath:config.." doenst help. >>>> >>>> Any ideas? >>>> >>>> Thanks a lot >>>> >>>> >>>> >>>> >>> >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "rife-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rife-users?hl=en -~----------~----~----~----~------~----~------~--~---
