[jboss-dev-forums] [Design of POJO Server] - Re: Metamodel and collections
anil.saldhana@jboss.com
do-not-reply at jboss.com
Thu Nov 15 11:52:27 EST 2007
"wolfc" wrote : 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.
You are right. That map needs to be generated one time during deployment and accessed multiple times. I see that you made the changes. Is this what you did?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105124#4105124
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105124
More information about the jboss-dev-forums
mailing list