Curt Smith wrote:
> >   TopicSubscriber subscriber = session.createSubscriber(topic);
> >   connection.start();
> >   Message m = subscriber.receive(); // !!!
> I'd like the above subscriber.receive() to
> be a non-blocking call.  I could live with a blocking with given timeout
> API.  I would prefer a call back technology.

Doesn't javax.jms.MessageConsumer.receive(long timeout) (which
TopicSubscriber inherits) do what you need?

Cheers,
Laird

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to