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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...