}
return replyManager;
}
public synchronized ReplyManager getReplyManager(String replyTo) throws Exception {
ReplyManager answer = replyToReplyManager.get(replyTo);
if (answer == null) {
// use a persistent queue
answer = new PersistentQueueReplyManager();
answer.setEndpoint(this);
answer.setScheduledExecutorService(getReplyManagerExecutorService());
ServiceHelper.startService(answer);
// remember this manager so we can re-use it
replyToReplyManager.put(replyTo, answer);
}
return answer;