LOG.log(Level.FINE, "client sending request: ", message);
if (queueDestinationStyle) {
QueueSender sender = (QueueSender)pooledSession.producer();
sender.setTimeToLive(ttl);
sender.send((Queue)targetDestination, message, deliveryMode, priority, ttl);
} else {
TopicPublisher publisher = (TopicPublisher)pooledSession.producer();
publisher.setTimeToLive(ttl);
publisher.publish((Topic)targetDestination, message, deliveryMode, priority, ttl);
}