[jboss-user] [JBoss Seam] - Re: WebSessionContext.flush causing out of memory

jarkko@jab.fi do-not-reply at jboss.com
Thu Oct 12 21:16:40 EDT 2006


	public String[] getNames() 
  |    {
  | 		Enumeration names = session.getAttributeNames();
  | 		ArrayList<String> results = new ArrayList<String>();
  |       String prefix = ScopeType.CONVERSATION.getPrefix();
  |       while ( names.hasMoreElements() ) {
  |          String name = (String) names.nextElement();
  |          if ( !name.startsWith(prefix) )
  |          {
  |             results.add(name);
  |             //results.add( name.substring(prefix.length()) );
  |          }
  |       }
  | 		return results.toArray(new String[]{});
  | 	}
  |    

  if ( !name.startsWith(prefix) ) is sometimes misguided because the name can start with "javax.portlet" but still have the prefix somewhere else (see the very long string in previous post).

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

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



More information about the jboss-user mailing list