// the destination object ( a temp queue) for the
// delegate to reply to.
while (!endpoint.replyDestinationFailed() && endpoint.getDestination() == null) {
synchronized (endpoint) {
try {
endpoint.wait(200);
} catch (InterruptedException e) {
}
}
}
System.out.println("Endpoint:" + endpoint.getEndpoint() + " Configured to Reply To temp queue:" + endpoint.getDestination());