Hi All, During a test case I am running the following set of lines(product-mb).
UserRealm userRealm = QueueManagerServiceValueHolder.getInstance().getRealmService().getTenantUserRealm(MultitenantConstants.SUPER_TENANT_ID); // giving pub/sub permissions to 'create_pub_sub_queue_role' role userRealm.getAuthorizationManager().authorizeRole(CREATE_PUB_SUB_QUEUE_ROLE, "event/queues/jms/testQueue3", TreeNode.Permission.CONSUME.toString().toLowerCase()); userRealm.getAuthorizationManager().authorizeRole(CREATE_PUB_SUB_QUEUE_ROLE, "event/queues/jms/testQueue3", TreeNode.Permission.PUBLISH.toString().toLowerCase()); While debugging found that "QueueManagerServiceValueHolder.getInstance().getRealmService()" is returning null. Its suppose to return a RealmService which I need to use it to change permission for a role. What may be the issue here ? Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +94777688882
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev