Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 94715 invoked from network); 7 Jan 2009 22:31:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2009 22:31:38 -0000 Received: (qmail 10477 invoked by uid 500); 7 Jan 2009 22:31:29 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 9501 invoked by uid 500); 7 Jan 2009 22:31:28 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 1619 invoked by uid 99); 7 Jan 2009 22:21:33 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of emanuele.ghevre@gmail.com designates 72.14.220.152 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:subject:content-type:content-transfer-encoding:from; bh=b5eb7AS0gNjoWYb0brCKpGDL7N2QNCzH5njD6YOSAvQ=; b=KoDnTjgiP/EgRnbiTJRqGq6y/ePTFYvC5DJSYzOYJj7vudVuBiBZezQ1L/4anZZOo6 JPsupQmzeltz40rqtKRDbCcH5SMtUWEvEa/IAI1ylau6YczZgKRKORluZlQZlC+Bj1xP Xpi7bimUv9mrxwsrUxolPzKCPQdXqO/UI+3+o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:content-type :content-transfer-encoding:from; b=P9tRSb1kYB4vz1znLQj8crCq9KvdTRU7fybPMm0QyWMUNTTnrW5eL0CQsEFv9OM8lM OCViEWo7+kwIepxVzzWlqp0E9Eh2NWuAn6iPNVJ23ocf2QS4BMHv6KK52K4lgWVD85R2 5ikZn7D454qhms4X5dQeP0lrWCzV8X0huUlE8= Message-ID: <49652ACD.30002@yahoo.it> Date: Wed, 07 Jan 2009 23:21:01 +0100 User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: user@struts.apache.org Subject: Spring scope prototype and Struts Action Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit From: Emanuele Ghevre X-Virus-Checked: Checked by ClamAV on apache.org Hi folks! Following the Struts 2 + Spring 2 + JPA + AJAX Tutorial (http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html) I'm declaring my Spring bean HelloWorldAction with scope prototype and then the action in struts.xml using the bean reference. As far as the scope is prototype I'm expecting Spring to create a new HelloWorldAction object "every time an object of that type is requested". But during my Tomcat boot I can see Spring creating an HelloWorldAction object. Is it normal? I thought this behaviour was only for singleton beans. Thanks, Emanuele --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org