You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Kit Plummer <ki...@gmail.com> on 2008/10/31 17:51:15 UTC

Services and Threads...

This may be a completely basic question that I should already know the  
answer to...

I have multiple threads each getting access to a service with service  
= BundleContext.getService(serviceRef).  My question is ... does this  
return the interface to the single instance of the service, or a new  
instance (for each thread that calls it)?

Kit

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Services and Threads...

Posted by Karl Pauls <ka...@gmail.com>.
single instance of the service.

regards,

Karl

On Fri, Oct 31, 2008 at 5:51 PM, Kit Plummer <ki...@gmail.com> wrote:
> This may be a completely basic question that I should already know the
> answer to...
>
> I have multiple threads each getting access to a service with service =
> BundleContext.getService(serviceRef).  My question is ... does this return
> the interface to the single instance of the service, or a new instance (for
> each thread that calls it)?
>
> Kit
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Karl Pauls
karlpauls@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org