Skip to content

Commit

Permalink
WBRI-253
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@2770 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Jun 5, 2009
1 parent bd78b81 commit 2eb3e82
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -155,6 +155,10 @@ else if ("setDestroyed".equals(method.getName()))
businessInterface = objectInterface;
}
Object proxiedInstance = reference.getBusinessObject(businessInterface);
if (proxiedInstance == null)
{
throw new IllegalStateException("No EJB can be found in the EJB container for " + reference + ". Make sure you are running an EJB container.");
}
Method proxiedMethod = Reflections.lookupMethod(method, proxiedInstance);
Object returnValue = Reflections.invokeAndWrap(proxiedMethod, proxiedInstance, args);
log.trace("Executed " + method + " on " + proxiedInstance + " with parameters " + args + " and got return value " + returnValue);
Expand Down

0 comments on commit 2eb3e82

Please sign in to comment.