Hi, I am trying to get working temporary queues on Java Broker. Each user should have access only to queue which he created.
ACL rights: ACL ALLOW-LOG user1 ACCESS VIRTUALHOST ACL ALLOW-LOG user1 CREATE QUEUE temporary="true" owner="user1" ACL ALLOW-LOG user1 CONSUME QUEUE temporary="true" owner="user1" ACL ALLOW-LOG user2 ACCESS VIRTUALHOST ACL ALLOW-LOG user2 CREATE QUEUE temporary="true" owner="user2" ACL ALLOW-LOG user2 CONSUME QUEUE temporary="true" owner="user2" I successfully create temporary queue by JMS method "TemporaryQueue temporaryQueue = session.createTemporaryQueue()", queue is correctly created on broker, but owner is not set in webgui (however createdBy and lastUpdatedBy in JSON is correctly set to corresponding user). When I try to create consumer by "MessageConsumer consumer = session.createConsumer(temporaryQueue)", I get "Permission CREATE is denied for : Consumer ...". When owner is not set in CONSUME ACL I can create consumer without error, but both users can consume same queue. Is there any different way to distinguish temporary queues, so one user cannot read other user messages? Another issue is I cannot sent messages directly to temporary queue. When I try to send message I get error "Permission PERFORM_ACTION(publish) is denied for : Queue 'TempQueueba2f889e-f95c-49d4-8c15-023e62666320'". We could utilize sending messages directly to queue, because we cannot dynamically create exchange binding by REST API. Or is there any way to set bindings by JMS? Java Broker 7.0.3 Qpid JMS client 0.31.0 Tomas -- Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
