0

I have an SLSB with connection factory and queue injected:

@Stateless
public class MQTestBean {
    @Resource(mappedName = "jms/MQQCF")
    private ConnectionFactory connectionFactory;

    @Resource(mappedName = "jms/testQueue")
    private Queue testQueue;
}

I would like to be able to inquire the queue for the following attributes:

  • current depth
  • open input count
  • open output count

Please keep in mind, that the channel's user I am using has only access to DSP, GET, PUT, INQ.

4

1 に答える 1

1

申し訳ありませんが、それを行う方法はありません。少なくともWMQJMSクライアントjarを使用します。ブラウジング中にカウントすることで間接的にaq深度を計算できます。それだけです。

入出力カウントには、MQ api(MQI / PCF)が必要になります。

編集:追加されたURL:Java用のMQクラス

于 2013-03-18T21:28:14.970 に答える