Hi Roberto, --- On Fri, 5/29/09, Roberto Rossi <roberto.ro...@cone.it> wrote:
> From: Roberto Rossi <roberto.ro...@cone.it> > Subject: Re: velocity context problem > To: "Jetspeed Users List" <jetspeed-user@portals.apache.org> > Date: Friday, May 29, 2009, 11:21 AM > > Is it shared between different > portal requests? I cannot figure out easily why it happens. > > Probably I'm stupid to ask this, but do you have any > member variable inside your portlet? e.g. context? > > Yes! I saved the context inside a private member variable > called context: > > "private Context context = null;" > > You were right Woonsan! I commented out this line and I > created the context variable inside the doView method and > now there is no more context mixture. > So for every portlet class there is just one instance? In > this way the my velocity context was shared between all > instances (fragments) of the same portlet! > You were right... I was very stupid! > Is this a specific approach of the JSR 168 standard? Or an > implementation of Jetspeed portal? Yes, it is standard just like servlet specification. Portlet should be thread-safe like servlet. Anyway, very glad to hear the good news. :-) > > > Yes, the renderRequest is specific of a portlet > window. > > By the way, just one question here: which version of > Jetspeed are you using? > > 2.1.2. I know we need to upgrade. Maybe we will try out the > fresh new 2.2 in the next few days. Yeah, now we need give a chance to 2.2 because it has just come with a lot of nice features and architectural competencies. Cheers! > > Thank you. > > ROb > > > > Cone consulting > Business in rete > Via Sandro Totti 7A - 60131 Ancona > Tel 071 9931 269 > Fax 071 9931 270 > eMail roberto.ro...@cone.it > Web www.cone.it > > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-user-h...@portals.apache.org