Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about SCBCD Study Guide by Mikalai Zaikin

 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I happen to notice something new in this read of mine.

ejbRemove method in SessionBean interface does not throw removeExcpetion.
Whereas EntityBean ejbRremove method throws removeException and other exceptions.

Now I am reading Chapter 4 page 2 of SCBCD Study Guide by Mikalai Zaikin.

Under Session Bean Life Cycle for session Bean
One point (last point from bottom) says --
The ejbRemove() method cannot be called when the instance is participating in a transaction. An attempt to remove a session object while the object is in a transaction will cause the container to throw the javax.ejb.RemoveException to the client.

Where is this remove exception coming from? Is it from home or object and not from bean class?

Ohoo.. these interfaces are getting too confusing :-(

Thanks in advance for you help!
Gemini
 
Keerthi P
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The container or rather the home object and the EJB object throw this exception.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic