[ 
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.

Reply via email to