显然是需要同步处理的.你可以定义一个Service,例如:interface BallService {
   void addTeam(String teamname) throws OutofQueueException;
}public class DefaultService {
   private final static _ins = new DefaultService();   public static DefaultService getInstance(){return _ins;}   public synchronized void addTeam(String teamname) throws OutofQueueException {
       ........
   }
}在你的Aciton中每接收到一个用户请求,立即通过getInstance().addTeam("yourteam name")来处理,当有OutofQueueException时即提示用户已满.