| Re: [gemini-dev] using managed-service-factory inner bean as a reference-listener |
| See the documentation ([1]) for information on service dynamics and references and collections. Essentially, if you try to use an extension for which the backing service has gone away, Gemini Blueprint will wait for another backing service to appear. There doesn't seem to be a way of configuring the timeout for this wait on the list element (unlike the reference element which can specify a timeout). Note that the list is managed dynamically, but there is still a race between selecting a member of the list and its backing service going away. However, reading section 9.2.3.3, it appears you can specify the member-type="service-reference" on the list element to obtain a list of ServiceReference objects. Then you can use the ServiceReference to safely access the backing service ensuring it won't go away while you are calling it. Regards, Glyn On 13 Jul 2012, at 06:34, Alexander Shutyaev wrote: Hi Glyn, |