portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Evans <aaronmev...@yahoo.ca>
Subject Re: Portlets and stateful protocol
Date Thu, 26 Jan 2006 13:05:06 GMT
Michael Gustav Simon <mgsimon <at> 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


Mime
View raw message