Reputation: 2340
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:
Please keep in mind, that the channel's user I am using has only access to DSP, GET, PUT, INQ.
Upvotes: 0
Views: 450
Reputation: 1177
Sorry to say but there is no way to do it. At least using the WMQ JMS client jar. You can calculate a q depth indirectly by counting-while-browsing, and that's about it.
For input/output count you are gonna need MQ api (MQI/PCF whatever suits you).
edit: added url: MQ Classes for Java
Upvotes: 1