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

"Unspecified Transaction Context"

 
Puneet Vashisht
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guyz,,

HFEJB PgNo 499, lists the methods(and circumstances) that might be running in an "Unspecified Transaction Context". It includes

1. Any CMT marked NotSupported, Never or Supports
2. Session bean methods ejbCreate(), ejbRemove(), ejbPassivate(), ejbActivate()
3. CMT message-driven bean methods ejbCreate() and ejbRemove().


My question is are these only methods or circumstances running in an "Unspecified Transaction Context". I think even Entity bean's ejbActivate(), ejbPassivate() methods run in an unspecified transaction context. And are there any more methods or circumstances in this respect.

Thankz,
Puneet
 
B.Sathish
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just have a look at bean things. Any method where you cannot mark a transaction for rollback / check whether the transaction is marked for rollback means it is running in an Unspecified Transaction Context
 
Puneet Vashisht
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankz satish,

that means i'm write then, and ejbActivate() and ejbPassivate() also run in "Unspecified Transaction Context".

thankz
puneet
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!