Bill Leonard wrote:
>
> Thanks, Ian.
>
> A couple of more questions (I'm very new to EJB so ...):
>
> Since MessageConsumer.receive() has a timeout value (blocks until a message
> is received), I was wondering about the tight loop. I assume that you mean
> one or both of the following: i) the JMS implementation of
> MessageConsumer.receive() may involve polling (although I don't see this
> given native platform support for events, etc.) ii) that we will receive
> other messages and have to filter them out on the client side (even if we
> use a Message Selector for the MessageConsumer the filtering is still done
> on the client side).
If you set the timeout high you are blocking not looping. If you set it low and
don't loop you'll miss replies. There is no right value when the cost to the
server of keeping your EJB in memory is so high.
========================================
Ian McCallion
Alexis Systems Limited
Romsey, UK
Tel: +44 1794 514883
Fax: +44 1794 501692
========================================
===========================================================================
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".