Return-Path: Delivered-To: apmail-portals-jetspeed-user-archive@www.apache.org Received: (qmail 82885 invoked from network); 26 Jan 2006 13:05:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jan 2006 13:05:47 -0000 Received: (qmail 56841 invoked by uid 500); 26 Jan 2006 13:05:46 -0000 Delivered-To: apmail-portals-jetspeed-user-archive@portals.apache.org Received: (qmail 56139 invoked by uid 500); 26 Jan 2006 13:05:44 -0000 Mailing-List: contact jetspeed-user-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Users List" Delivered-To: mailing list jetspeed-user@portals.apache.org Received: (qmail 56128 invoked by uid 500); 26 Jan 2006 13:05:43 -0000 Delivered-To: apmail-jakarta-jetspeed-user@jakarta.apache.org Received: (qmail 56125 invoked by uid 99); 26 Jan 2006 13:05:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2006 05:05:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-jetspeed-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2006 05:05:43 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F26oK-0006Vx-Oc for jetspeed-user@jakarta.apache.org; Thu, 26 Jan 2006 14:05:13 +0100 Received: from CPE000f6636b02a-CM014480016982.cpe.net.cable.rogers.com ([72.139.90.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jan 2006 14:05:12 +0100 Received: from aaronmevans by CPE000f6636b02a-CM014480016982.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jan 2006 14:05:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: jetspeed-user@jakarta.apache.org From: Aaron Evans Subject: Re: Portlets and stateful protocol Date: Thu, 26 Jan 2006 13:05:06 +0000 (UTC) Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 72.139.90.69 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Michael Gustav Simon gmail.com> writes: > > Have anyone an ideo to get a portletinstance per user? > Michael, you *really* would not want this. This approach would never scale and this is exactly why there is only one portlet instance per VM (actually, this isn't quite correct, as you can configure multiple instances, but the point is that it is not on a per-user basis). However, there is the portlet session, and this is one-to-one with portlet users. I think what you really want to do is create a singleton service that would manage the mapping of user sessions to "chat connections" or what ever. The portlet would then use this service to determine what traffic belongs to the logged in user. Just remember to make your service thread-safe! HTH, aaron --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-user-help@portals.apache.org