public void sendCommandToClient(final String clientName, final Command command)
{
final Destination clientQueue = _clientNameToQueueMap.get(clientName);
if (clientQueue == null)
{
throw new DistributedTestException("Client name " + clientName + " not known. I know about: "
+ _clientNameToQueueMap.keySet());
}
try
{
final MessageProducer producer = _session.createProducer(clientQueue);
final Message message = JmsMessageAdaptor.commandToMessage(_session, command);
producer.send(message);
}
catch (final JMSException e)
{
throw new DistributedTestException(e);
}
}