>
> I do not see any problems with 1)
>
> I think it is appropriate to use JMS in a request/reply
> scenario with a
> session bean as a client, given that you call receive on your
> TopicSubscriber with a time-out value that is in the spirit
> of synchronous
> OLTP requests.
>
> Ian, what difference does it make, to invoke a jdbc call
> blocking for 10ms,
> compared to invoke a JMS receive call blocking for 10 ms? One
> could even
> argue that JMS gives you a portable way of controlling
> request time-out,
> whereas jdbc doesn't.
>
> /Johan

If an EJB blocks for too long, throughput will be affected considerably.

Consider a server with N threads. Each EJB call blocks for Tb seconds and
utilizes Tc seconds of CPU time.

CPU utilization is then limited by N*Tc/(Tb+Tc). If this number is smaller
than the number of CPUs on the machine, the server will be underutilized.

It is clear that if Tb (blocking time) is large relative to Tc (processing
time), then there will be a utilization problem, or the number of threads
will have to be increased dramatically, creating memory pressure.


- Avi
--
This signature intentionally left blank.

===========================================================================
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