boolean anonSucceeded = true;
try
{
MessageProducer producerAnon = sess.createProducer(null);
Message m = sess.createTextMessage("Kippers");
producerAnon.send(dest, m);
}
catch (JMSSecurityException e)
{
log.trace("Can't write to destination using named producer");