super(beanContext, interfaceType, interfaces, mainInterface);
}
public Object createProxy(final Object primaryKey, final Class mainInterface) {
final Object proxy = super.createProxy(primaryKey, mainInterface);
final EjbObjectProxyHandler handler = (EjbObjectProxyHandler) ProxyManager.getInvocationHandler(proxy);
/*
* Register the handle with the BaseEjbProxyHandler.liveHandleRegistry
* If the bean is removed by its home or by an identical proxy, then the
* this proxy will be automatically invalidated because its properly registered
* with the liveHandleRegistry.
*/
registerHandler(handler.getRegistryId(), handler);
return proxy;
}