[ https://issues.apache.org/activemq/browse/AMQ-200?page=all ]
Hiram Chirino updated AMQ-200:
------------------------------
Fix Version: 4.3
Another complex nice to have. Putting on roadmap at 4.3
> 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
> Type: New Feature
> Components: JMS client, Broker
> Reporter: james strachan
> Priority: Minor
> Fix For: 4.3
>
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira