Hi!
Ashwin Dinakar wrote:
> For the producer specifically- is it not possible to have a asynchronous 'send' ?
>How would one implement this ?
Yes, this would be possible. There are two possible scenarios, of which
one is more likely:
1. Upon send the JMS implementation spawns a new thread which handles
the JMS message, hence making the send asynchronous
2. Upon send the JMS implementation gets a thread from a thread pool
which handles the JMS message, hence making the send asynchronous
2 is more likely, as it is more efficient. However, if the pool is not
large enough (i.e. it is empty at the point of sending a message) a new
dispatcher thread will have to be created (i.e. case 1) by the JMS
implementation thread pool. In order to be able to do this the JMS
implementation must have the proper permissions (as outlined in earlier
posts) and do appropriate doPrivileged calls (as outlined in earlier
posts).
Makes sense? Anything unclear?
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
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".