{
log.warn("Unable to determine destination for " + mdb.getName());
return false;
}
boolean isTopic = false;
JMSConfiguration config = new JMSConfigurationImpl();
String noSlashesName = destinationName.substring(destinationName.lastIndexOf('/') + 1);
if (destinationType == null)
{
log.warn("Unable to determine destination type for " + mdb.getName());
return false;
} else if (destinationType.equals(Queue.class.getName()))
{
config.getQueueConfigurations().add(
new JMSQueueConfigurationImpl(noSlashesName, null, true,
"queue/" + noSlashesName, destinationName));
} else if (destinationType.equals(Topic.class.getName()))
{
config.getTopicConfigurations().add(
new TopicConfigurationImpl(noSlashesName, "topic/"+ noSlashesName, destinationName));
isTopic = true;
} else
{
log.warn("Unknown destination type '" + destinationType + "' for "