Return-Path: Delivered-To: apmail-jakarta-turbine-user-archive@www.apache.org Received: (qmail 41964 invoked from network); 27 Nov 2006 19:29:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2006 19:29:43 -0000 Received: (qmail 57203 invoked by uid 500); 27 Nov 2006 19:29:50 -0000 Delivered-To: apmail-jakarta-turbine-user-archive@jakarta.apache.org Received: (qmail 57141 invoked by uid 500); 27 Nov 2006 19:29:49 -0000 Mailing-List: contact turbine-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Turbine Users List" Reply-To: "Turbine Users List" Delivered-To: mailing list turbine-user@jakarta.apache.org Received: (qmail 57104 invoked by uid 99); 27 Nov 2006 19:29:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 11:29:49 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ross_sheldon@hotmail.com designates 65.54.246.79 as permitted sender) Received: from [65.54.246.79] (HELO bay0-omc1-s7.bay0.hotmail.com) (65.54.246.79) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 11:29:35 -0800 Received: from hotmail.com ([65.54.224.48]) by bay0-omc1-s7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 27 Nov 2006 11:29:15 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 27 Nov 2006 11:29:14 -0800 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Mon, 27 Nov 2006 19:29:12 GMT X-Originating-IP: [64.25.135.3] X-Originating-Email: [ross_sheldon@hotmail.com] X-Sender: ross_sheldon@hotmail.com From: "Sheldon Ross" To: turbine-user@jakarta.apache.org Subject: Synchronized Velocity Actions Date: Mon, 27 Nov 2006 19:29:12 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 27 Nov 2006 19:29:14.0919 (UTC) FILETIME=[52D1DB70:01C7125A] X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am currently working on the development of a large Turbine based project that involves a large number of database queries. The problem I am experiencing relates to the synchronizing of doPerform methods under VelocityAction. [CODE] public synchronized void doPerform(RunData data, Context context){ // do large query return; } [/CODE] The goal is to have the methods safe for a particular session, but allow multiple sessions to access the methods at the same time. The way it seems to be working now is synchronizing across the whole servlet instance. IE when one user performs a certain task, another user must wait while that method is executed before he can use the same method. My understanding of synchronizing is that it acts on the objects being passed, shared then the method can be called multiple times as long as the objects are completely different. Perhaps I'm wrong about this. But, if that is indeed that case, then there must be something persistent about the data or context in velocity or turbine. Any thoughts or suggestions about how to synchronize these requests for a session, but not across sessions will be appreciated. Thanks, Sheldon Ross PS. There are no tool.global references in TurbineResources. _________________________________________________________________ Talk now to your Hotmail contacts with Windows Live Messenger. http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-user-help@jakarta.apache.org