[jboss-dev-forums] [Design of JBoss Web Services] - Reminder, No lazy loading in the UMD
jason.greene@jboss.com
do-not-reply at jboss.com
Fri Oct 6 09:40:04 EDT 2006
Hi Everyone,
Last night I stumbled across this:
| public OperationMetaData getOperation(Method method)
| {
| OperationMetaData opMetaData = methodCache.get(method);
| if (opMetaData == null)
| {
| for (OperationMetaData aux : operations)
| {
| if (aux.getJavaMethod().equals(method))
| {
| methodCache.put(method, aux);
| opMetaData = aux;
| break;
| }
| }
| }
| return opMetaData;
| }
|
As a general reminder, we can't use lazy loading in the UnifiedMetaData model because it is shared across threads. If we need to cache something, it needs to be done in eagerInitialize()
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976588#3976588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976588
More information about the jboss-dev-forums
mailing list