dest = AdminModule.createTopic(serverId,
shortName,
"org.objectweb.joram.mom.dest.Topic",
null);
else
throw new NotSupportedException("Invalid destination type provided as activation parameter: " + destType);
dest.setFreeReading();
dest.setFreeWriting();
if (logger.isLoggable(BasicLevel.INFO))
logger.log(BasicLevel.INFO,
" - Destination [" + shortName + "] has been created.");
bind(destName, dest);
}
if ("javax.jms.Queue".equals(destType)) {
if (! (dest instanceof javax.jms.Queue))
throw new NotSupportedException("Existing destination " + destName + " does not provide correct type.");
} else if ("javax.jms.Topic".equals(destType)) {
if (! (dest instanceof javax.jms.Topic))
throw new NotSupportedException("Existing destination " + destName + " does not provide correct type.");
} else
throw new NotSupportedException("Invalid destination type provided as activation parameter: " + destType);
String userName = specImpl.getUserName();
String password = specImpl.getPassword();
String identityClass = specImpl.getIdentityClass();