}
protected void registerListenerForDeploymentUpdates(ReferenceCollection deploymentIdAccessors) {
deploymentIdAccessors.addReferenceCollectionListener(new ReferenceCollectionListener() {
public void memberAdded(ReferenceCollectionEvent event) {
EjbDeploymentIdAccessor idAccessor = (EjbDeploymentIdAccessor) event.getMember();
String deploymentId = idAccessor.getDeploymentId();
updateTracker(deploymentId);
}
public void memberRemoved(ReferenceCollectionEvent event) {
EjbDeploymentIdAccessor idAccessor = (EjbDeploymentIdAccessor) event.getMember();
String deploymentId = idAccessor.getDeploymentId();
removeTracker(deploymentId);
}
});
}