[英]ems tibco and credentials for sending message
我想禁止用户将消息发送到特定的队列(jms)。 我正在使用tibco ems服务器,tibco管理工具。
我做了以下事情:
tcp://localhost:7222> create user test "Test user" password=test
> tcp://localhost:7222> create group admin
> Group 'admin' has been created
> tcp://localhost:7222> create group users
> Group 'users' has been created
> tcp://localhost:7222> add member users test
> Group 'users' has been modified
> tcp://localhost:7222> add member admin admin
> Group 'admin' has been modified
> tcp://localhost:7222> add member admin EMS-SERVER
> Group 'admin' has been modified
> tcp://localhost:7222> add member admin EMS-SERVER2
> Group 'admin' has been modified
> tcp://localhost:7222> show users
> User Name Description
> admin Administrator
> EMS-SERVER Main Server
> EMS-SERVER2 Route Server
> test Test user
> tcp://localhost:7222> grant queue in.queue group=admin all
> Permissions have been changed
> tcp://localhost:7222> showacl queue in.queue
> Principal Permissions for queue 'in.queue'
> Group=admin receive,send,browse
此外,我想检查“测试”用户是否没有凭据才能在“ in.queue”上发送消息。 Java代码如下:
> String user = "test";
> String password = "test";
> try {
> connection = qcf.createQueueConnection(user, password);
但是最终该用户发送了消息。
textMessage.setText( “嗨!”); sender.send(文字信息);
结果,在我的队列中,我收到了新消息。
我做错了什么?
解决方法是
tcp://localhost:7222> set server authorization=enabled
Server parameters have been changed
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.