Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Question about SCBCD Study Guide by Mikalai Zaikin

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The container or rather the home object and the EJB object throw this exception.
 
reply
    Bookmark Topic Watch Topic
  • New Topic