title: defining Spring request scope bean
body: <p>For using spring <strong>request scope</strong> bean is this definition correct?</p>
  
  <pre><code>&lt;bean id="shoppingCart" class="ShoppingCart" scope="request"&gt;
  &lt;!-- This requires CGLIB --&gt; 
  &lt;aop:scoped-proxy/&gt;
  &lt;/bean&gt; 
  </code></pre>
  
  <p>I modified this from a <strong>session scope</strong> bean example, and changed only the scope definition, not sure about the proxy thing</p>
  
  <p>I took this example from this link, you can see the full xml:</p>
  
  <p><a href="http://wheelersoftware.com/articles/spring-session-scoped-beans-2.html" rel="nofollow">http://wheelersoftware.com/articles/spring-session-scoped-beans-2.html</a></p>