Hi Steven,
thanks a lot for updating the wiki page with Spring information. I'm
not so sure about the "Injecting RIFE objects into Spring beans"
section though. Instead of aggregating the datasource in a static
class variable that it afterwards accessible to Spring, isn't it
possible to inject bean declarations into the Spring bean factory
using a participant?
Another minor note: "The order is important here: our factory has to
come after all the resources it wants to supply to Spring, and before
the Spring participant. Otherwise Spring might try to call it before
it has the objects it needs." This is not correct. Participants are
not sequentially initialized unless you add set the blocking
attribute to true. Otherwise, they are all just launched in a
separate thread and do their thing. THe getObject(s) methods are
wrapped to the any thread that obtains a participant data object is
but into a wait state until the initialization is finishes. This
allows an application to start up as fast as possible with only
delays when data is really needed from a participant that hasn't
finished initializing yet.
Best regards,
Geert
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users