【问题标题】:ems tibco and credentials for sending messageems tibco 和发送消息的凭据
【发布时间】:2015-01-30 14:14:02
【问题描述】:

我想禁止用户将消息发送到特定队列(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

此外,我想检查“test”用户是否没有凭据以在“in.queue”上发送消息。 java代码如下:

> String user = "test";
>         String password = "test";
>         try {
>             connection = qcf.createQueueConnection(user, password);

但最终这个用户发送了消息。

textMessage.setText("嗨!"); sender.send(textMessage);

因此,我的队列中有新消息。

我做错了什么?

【问题讨论】:

    标签: java jms tibco tibco-ems


    【解决方案1】:

    解决办法是

    tcp://localhost:7222> set server authorization=enabled
    Server parameters have been changed
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-29
      • 2010-12-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多