public String resolveMessageDestination(String link) { // // FIXME: this is a copy of DeploymentEjbResolver & Ejb3Deployment.resolveMessageDestination // int hashIndex = link.indexOf('#'); // if (hashIndex != -1) // { // if (deploymentScope == null) // { // log.warn("ejb link '" + link + "' is relative, but no deployment scope found"); // return null; // } // String relativePath = link.substring(0, hashIndex); // Ejb3Deployment dep = deploymentScope.findRelativeDeployment(relativePath); // if (dep == null) // { // log.warn("can't find a deployment for path '" + relativePath + "' of ejb link '" + link + "'"); // return null; // } // String name = link.substring(hashIndex + 1); // // call resolve, because get is private (and should stay that way) // return dep.resolveMessageDestination(name); // } // return getMessageDestination(link); return messageDestinationResolver.resolveMessageDestination(link); }