[JBoss Seam] - Re: EntitySecurityListener and MDBs
by mtpettyp
I started hacking around with the source and I came up with the following solution:
Change Identity.isSecurityEnabled():
| public static boolean isSecurityEnabled()
| {
| return securityEnabled &&
| Contexts.isSessionContextActive()&&
| Identity.instance().isIdentitySecurityEnabled();
| }
|
Add the following methods to Identity:
| private boolean identitySecurityEnabled;
| <snip/>
|
| public boolean isIdentitySecurityEnabled()
| {
| return identitySecurityEnabled;
| }
|
| public void setIdentitySecurityEnabled(boolean enabled)
| {
| identitySecurityEnabled = enabled;
| }
|
This solves both my problem mentioned above.
If any of the Seam committers think this is a valid solution I can create a JIRA issue and attach the patch.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080108#4080108
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080108
16Â years, 9Â months
[JBoss Seam] - Re: Problems using ajax validation in seam-gen
by pete.muirï¼ jboss.org
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
16Â years, 9Â months