"User.create(), unknown DMQ: " + dmq);
}
}
properties = null;
} else if (rawName.equals(ELT_DESTINATION)) {
Destination dest = null;
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "dest type =" + type);
if (type.equals("queue")) {
if (className == null)
className = "org.objectweb.joram.mom.dest.Queue";
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG,
"Queue.create(" + serverId + "," + name + "," + className + "," + properties + ")");
dest = getWrapper().createQueue(serverId, name, className, properties);
} else if (type.equals("topic")) {
if (className == null)
className = "org.objectweb.joram.mom.dest.Topic";
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG,
"Topic.create(" + serverId + "," + name + "," + className + "," + properties + ")");
dest = getWrapper().createTopic(serverId, name, className, properties);
} else
throw new Exception("type " + type + " bad value. (queue or topic)");
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "destination = " + dest);
properties = null;
configureDestination(dest);
// Bind the destination in JNDI.
// Be Careful, currently only one binding is handled.
if (isSet(jndiName))
toBind.put(jndiName, dest);
jndiName = null;
// Register the destination in order to handle it later.
String name = dest.getAdminName();
if (! isSet(name))
name = dest.getName();
if (dest instanceof Queue) {
queues.put(name, dest);
} else {
// It's a Topic
topics.put(name, dest);