This content has been marked as final.
Show 1 reply
-
1. Re: getEJBLocalObject returns null (JBoss 3.2.0)
javajedi Apr 29, 2003 11:55 AM (in response to javajedi)I have a workaround for the problem. I basically just duplicated the code that should be setting this. Still don't know why it's not hooked up when it gets to me though. Seems like a bug.
EntityEnterpriseContext context = (EntityEnterpriseContext)
_invocation.getEnterpriseContext();
EJBLocalObject rtn = context.getEJBLocalObject();
if (rtn == null) {
//This should never happen as far as I can tell, but it does.
//We can still get at the local object; we just have
//to dig around a little.
EntityContainer container = (EntityContainer) _container;
rtn = container.getLocalProxyFactory().getEntityEJBLocalObject(
context.getCacheKey());
}
return rtn;