Hello,

Your portlets should be designed thread safe - like servlets.  So your usage of 
an instance variable, resultsFlag, will only work as long as your portlet 
handles a single request from a single user.  The moment two different users 
use invoke the processAction(), you will have contention issues for the correct 
value of resultsFlag.

Also, notice in your code that you never reset resultsFlag to false, so once it 
gets set to true, it's always true!

Cheers.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909399#3909399

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909399


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to