This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Mastering Corda: Blockchain for Java Developers and have Jamiel Sheikh on-line!
See this thread for details.
Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Transaction Attributes for Methods in the Entity Bean Class?

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems to me that all the methods in Entity Bean class don't need any transaction attribute. But I am sure. Tell me some if someone find any methods need to be specified transaction attributes.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should find the answer in the HFE book or the spec. But at the top of my head
setEntityContext
unsetEntityContext
ejbActivate
ejbPassivate
would execute in an "unspecified transaction context" . These are not exposed to the client anyway.
Also
ejbLoad would be invoked in the transaction context of the calling "business method"
ejbStore would be invoked in the transaction context of either the "ejbLoad" or the "ejbCreate"
ejbPostCreate would be invoked in the transaction context of ejbCreate
These are again not exposed to the client
For CMP / BMP entity beans, since they are "CMT" , all the other methods should have a transaction attribute defined, either generically (wildcard) or specifically.
Hope this helps
 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

... For CMP / BMP entity beans, since they are "CMT" , all the other methods should have a transaction attribute defined, either generically (wildcard) or specifically.


What I can find the methods in entity beans need the transaction attributes are only those business methods in the bean class. What else?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic