[
https://issues.apache.org/activemq/browse/AMQ-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Davies resolved AMQ-200.
----------------------------
Fix Version/s: 5.1.0
(was: 5.2.0)
Resolution: Fixed
Fixed by messagePull - for prefetch = 0
> new API to poll for messages without requiring a session and consumer
> ---------------------------------------------------------------------
>
> Key: AMQ-200
> URL: https://issues.apache.org/activemq/browse/AMQ-200
> Project: ActiveMQ
> Issue Type: New Feature
> Components: Broker, JMS client
> Reporter: James Strachan
> Assignee: Rob Davies
> Priority: Minor
> Fix For: 5.1.0
>
>
> In Servlets and other similar situations, its often handy to poll for
> messages but without creating & closing sessions, consumers etc.
> e.g. it'd be nice to do a one-shot poll..
> interface ActiveConnection extends Connection {
> /** polls for a message, waiting up to the maximum timeout, invoking the
> listener with the message and returning true if a message was processed
> */
> boolean poll(Destination destination, String selector, MessageListener
> listener, long timeout);
> // for durable topics
> boolean poll(Destination destination, String selector, String subscriberName,
> MessageListener listener, long timeout);
> the timeout and selector can be omitted etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.