Use a servicefactory.

On Sep 5, 2011, at 6:24 AM, Sorin Silaghi wrote:

> Hi all,
> 
> 
>            I need to declare a service that has scope="prototype" but it
> doesn't seem to work. Here's what I did:
> 
> <bean id="randomFileListFTPClient"
> class="de.edigrid.util.servicemix.strategy.RandomFileListFTPClient"
> scope="prototype"/>
> <osgi:service id="randomFileListFTPClientService"
> ref="randomFileListFTPClient"
> interface="org.apache.commons.net.ftp.FTPClient" />
> 
> 
>            I also tried scope="bundle" and it's the same thing. I expected
> that to work. Any ideas ?
> 
> 
> thank you,
>                Sorin.

Reply via email to