}
private void check(Destination dest, CheckType checkType, ServerConnectionEndpoint conn)
throws JMSSecurityException
{
JBossDestination jbd = (JBossDestination)dest;
if (jbd.isTemporary())
{
if (trace) { log.trace("skipping permission check on temporary destination " + dest); }
return;
}
if (trace) { log.trace("checking access permissions to " + dest); }
if (checkCached(dest, checkType))
{
// OK
return;
}
boolean isQueue = jbd.isQueue();
String name = jbd.getName();
SecurityStore sm = conn.getSecurityManager();
SecurityMetadata securityMetadata = sm.getSecurityMetadata(isQueue, name);
if (securityMetadata == null)