问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . How to obtain the queue length (number of unconsumed messages sent to queue) in ActiveMQ, using Java? 回答1: You have to use JMX, since the Queue interface does not provide such information. Example of retrieving