public void authorizeConsumer(BrokerClient client, ConsumerInfo info) throws JMSException {
PolicyContext.setContextID(getDestinationPoicyContextId(client, info.getDestination()));
AccessControlContext accessContext = getAccessControlContext(client);
if (accessContext != null) {
Permission permission = new JMSDestinationPermission(info.getDestination().getPhysicalName(),JMSDestinationPermission.CONSUME_ACTION);
accessContext.checkPermission(permission);
}
}
public boolean authorizeReceive(BrokerClient client, ActiveMQMessage message) {
try {