• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic