@Override public <T> void setLocator(EJBLocator<T> locator) { super.setLocator(locator); Affinity affinity = locator.getAffinity(); if (affinity instanceof ClusterAffinity) { ClusterAffinityInterest interest = invocationHandler.getAttachment(ClusterAffinityInterest.KEY); if (interest != null) { interest.notifyAssignment((ClusterAffinity)affinity); } } }
@Override public <T> void setLocator(EJBLocator<T> locator) { super.setLocator(locator); Affinity affinity = locator.getAffinity(); if (affinity instanceof ClusterAffinity) { ClusterAffinityInterest interest = invocationHandler.getAttachment(ClusterAffinityInterest.KEY); if (interest != null) { interest.notifyAssignment((ClusterAffinity)affinity); } } }
@Override public <T> void setLocator(EJBLocator<T> locator) { super.setLocator(locator); Affinity affinity = locator.getAffinity(); if (affinity instanceof ClusterAffinity) { ClusterAffinityInterest interest = invocationHandler.getAttachment(ClusterAffinityInterest.KEY); if (interest != null) { interest.notifyAssignment((ClusterAffinity)affinity); } } }