aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes transaction context and resource manager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "transaction context and resource manager" Watch "transaction context and resource manager" New topic
Author

transaction context and resource manager

Shiang Wang
Ranch Hand

Joined: Jun 20, 2003
Posts: 96
Didn't realize I posted it in a wrong forum.
Here is my question.

What is relationship between these two?
Somewhere in HFEJB and the spec, if I remember it correctly, says that you can only access to resource manager or other ejb if you are in 'meaningful transaction context'. Then how about stateful session bean's ejbCreate() and ejbRemove(), they are not in tx but you can access resource manager?
This is only exception I can find though.

Thanks
Shiang


SCBCD, SCWCD, SCJP
Timothy Toe
Ranch Hand

Joined: Oct 19, 2002
Posts: 156
[Then how about stateful session bean's ejbCreate() and ejbRemove(), they are not in tx but you can access resource manager?] - By this, I presume you are talking about CMT SFSB. I have to differentiate between CMT and BMT because it makes a difference for your question.

I would think that transactions and accessing resources (eg other beans and resource managers) are not related to each other.

See Crettaz's Bean LC cheat sheet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: transaction context and resource manager