title: How to configure Spring-DM OSGi service for new instance per call?
body: <p>I'm starting to delve into using Spring DM and OSGi services in an RCP application. I've created a service which is used by another bundle in the RCP application. It does a lookup of the service via calls to getBundleContext().getServiceReference() using the explicit bundle names and service class names. I'm not using DI anywhere yet. The issue I'm running into is that the service that is returned in the requesting bundle is a singleton. At times I notice a threading issue since it is a "stateful" service. How do I configure the application to get back a new service instance with each call? </p>
  
  <p>Here is my spring xml file contents which registers the service:</p>
  
  <pre><code>&lt;bean id="myServBean" class="com.xyz.ClassImpl"/&gt;
  &lt;osgi:service ref="myServBean" class="com.xyz.Class"/&gt;
  </code></pre>