[jboss-dev-forums] [Design of POJO Server] - Re: Metamodel and collections
wolfc
do-not-reply at jboss.com
Thu Nov 15 04:33:45 EST 2007
java.lang.NullPointerException
| at org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData.getPrincipalVersusRolesMap(JBossAssemblyDescriptorMetaData.java:360)
| at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:159)
|
Code with an explicit check on null is twice as fast. So I would save 1ms for every ~100000 calls. :-)
Seriously: the code in getPrincipalVersusRolesMap is too slow for per EJB call usage. I would rather see the reversed mapping being dynamically maintained in SecurityRolesMetaData.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104894#4104894
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104894
More information about the jboss-dev-forums
mailing list