use of com.sun.ejb.containers.EJBLocalRemoteObject in project Payara by payara.
the class ActiveTxCache method doEJBHomeRemove.
// Called from EJBHomeImpl.remove(primaryKey),
// EJBLocalHomeImpl.remove(primaryKey)
protected void doEJBHomeRemove(Object primaryKey, Method removeMethod, boolean local) throws RemoveException, EJBException, RemoteException {
EJBLocalRemoteObject ejbo;
if (local) {
ejbo = internalGetEJBLocalObjectImpl(primaryKey, false, true);
} else {
// may be remote-only bean
ejbo = internalGetEJBObjectImpl(primaryKey, null, false, true);
}
removeBean(ejbo, removeMethod, local);
}
use of com.sun.ejb.containers.EJBLocalRemoteObject in project Payara by payara.
the class ActiveTxCache method removeBeanUnchecked.
/**
* Remove a bean. Used by the PersistenceManager.
* This is needed because the PM's remove must bypass tx/security checks.
*/
public void removeBeanUnchecked(Object primaryKey) {
EJBLocalRemoteObject ejbo;
if (isLocal) {
ejbo = internalGetEJBLocalObjectImpl(primaryKey);
internalRemoveBeanUnchecked(ejbo, true);
} else {
// remote-only bean
ejbo = internalGetEJBObjectImpl(primaryKey, null);
internalRemoveBeanUnchecked(ejbo, false);
}
}
Aggregations