So you're saying - set up UserTransactions inside the MDB such that when it gets a new 
message it creates a new UserTransaction, then runs the relevant code within it?

I could go for that - I want to make sure though that using a UserTransaction (and so 
handling transaction details myself) won't conflict with using the out-of-the-box 
transaction services available to ejb's (that is, container-managed transactions).  If 
this is the case I'll give it a crack.

Also, do you know why the performance sucks when ejbs using container-managed 
transactions are called from an MDB?  I was under the impression that the transaction 
would demarcate on the CMP bean boundary rather than inside the mdb itself, which was 
ok if not ideal.  Obviously something is happening that slows the normal transaction 
service in the CMP beans because of how they're being called.  Unless of course its 
just that you should always call cmp beans from within a transaction (I didnt get that 
impression from the spec).

Thanks for the feedback 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842436#3842436

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842436


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to