Rickard wrote:

> Further, there is nothing that prevents Enterprise Beans to be producers
> of JMS messages, or at least you should not consider the EJB threading
> restrictions to be the cause, again as has been discussed extensively
> during the past weeks.

Actually I do not believe you are correct in this.....to be a JMS
Message producer you need to have an open JMS Session.  Session's
implement Runnable and usually start a separate thread for their JMS
operations when you create one.  This means that an EJB cannot
create a JMS Session...and without one you cannot do any message
production.

Just like with message consumers, I belive you would have to build
external proxies for both message sending and production because of
this.  Not worth the effort since the next EJB spec will integrate JMS
functionality and allow EJBeans to be both message producers and
consumers.  I believe the current thinking on the integration is that the
container would supply the "proxies" to the core JMS functionality on
behalf of the beans, so the restriction on use of threads in EJBeans will
not be restricted.

Sometimes it is just easier to go with pure JMS....and leave the EJB
model behind.


Andrzej Jan Taramina
Chaeron Consulting Corporation

Chaeron:  - http://www.chaeron.com

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