[jboss-user] [JBoss Seam] - Re: Problems using ajax validation in seam-gen

pete.muir@jboss.org do-not-reply at jboss.com
Fri Aug 31 13:07:21 EDT 2007


I still can't reproduce this.

I made the getTotal() method this:

public Integer getTotal() {
  | 		for (int i = 0; i < 100000000; i++)
  | 		{
  | 			int j = i / 10 + 10;
  | 		}
  | 		log.info("printing total");
  | 		return this.first + this.second + this.third;
  | 	}

to simulate very heavy load inside the getTotal method, entered some values and sat there with my finger on tab for a while. I get this printed out:

18:04:12,993 INFO  [CalcBean] printing total
  | 18:04:13,630 INFO  [CalcBean] printing total
  | 18:04:26,813 INFO  [CalcBean] printing total
  | 18:04:29,843 INFO  [CalcBean] printing total
  | 18:04:30,448 INFO  [CalcBean] printing total
  | 18:04:31,257 INFO  [CalcBean] printing total
  | 18:04:31,319 INFO  [CalcBean] printing total
  | 18:04:31,826 INFO  [CalcBean] printing total
  | 18:04:31,846 INFO  [CalcBean] printing total
  | 18:04:31,909 INFO  [CalcBean] printing total
  | 18:04:31,940 INFO  [CalcBean] printing total
  | 18:04:31,982 INFO  [CalcBean] printing total
  | 18:04:31,984 INFO  [CalcBean] printing total
  | 18:04:32,108 INFO  [CalcBean] printing total
  | 18:04:32,175 INFO  [CalcBean] printing total
  | 18:04:32,246 INFO  [CalcBean] printing total
  | 18:04:32,434 INFO  [CalcBean] printing total
  | 18:04:32,545 INFO  [CalcBean] printing total
  | 18:04:32,566 INFO  [CalcBean] printing total
  | 18:04:32,602 INFO  [CalcBean] printing total
  | 18:04:32,613 INFO  [CalcBean] printing total
  | 18:04:32,619 INFO  [CalcBean] printing total
  | 18:04:34,024 INFO  [CalcBean] printing total
  | 18:04:34,062 INFO  [CalcBean] printing total

So, as you can see the function does take a non-trivial amount of time to process but a4j/seam does handle the load.  What version of ajax4jsf?  I'm using the one in Seam CVS (1.1.1)

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

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



More information about the jboss-user mailing list