Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

transaction context and resource manager

 
Shiang Wang
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!