You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Christian Burger (JIRA)" <ji...@apache.org> on 2007/10/05 08:32:23 UTC

[jira] Commented: (AMQ-1157) startup destinations don't work when using a security policy

    [ https://issues.apache.org/activemq/browse/AMQ-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40280 ] 

Christian Burger commented on AMQ-1157:
---------------------------------------

Hello,

I downloaded yesterday the 5.0-Snapshot soruce and debugged (cause I run into the same problem) ... even if above mentioned changes are applied still another change is missing:

Class: AbstractRegion.java
Method: start()

Here you find this:
            ConnectionContext context = new ConnectionContext();
            context.setBroker(broker.getBrokerService().getBroker());
            context.getBroker().addDestination(context, dest);

Also here the SecurityContext need to be added:             context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
            ConnectionContext context = new ConnectionContext();
            context.setBroker(broker.getBrokerService().getBroker());
             context.setSecurityContext(SecurityContext.BROKER_SECURITY_CONTEXT);
            context.getBroker().addDestination(context, dest);

Can this be made soon?

> startup destinations don't work when using a security policy
> ------------------------------------------------------------
>
>                 Key: AMQ-1157
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1157
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>    Affects Versions: 4.1.0
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 5.0.0
>
>
> we need a special 'broker' security context which is able to create new destinations on startup etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.