• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Transaction Att for callback methods

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my Session facade there are many business process methods inserting a record, deleting and selecting a record.
So there are 3 different methods,
createEntity, deleteEntity, selectEntity
For createEntity & deleteEntity I specify the tx attribute as Required
For selectEntity I specify the tx attribute as Never.
What should be the tx attributes for the call back methods.
Should i had to specify If i do not specify will it be in a transaction. if Yes it will be of what type
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By default there wouldnt be any transaction attr. for any method & no need to give tr. att. for the call back methods.
And I dnt think so that you need to give tr. attr. for your Session Facade bean as already from this you are calling the entity bean which you would be having tra. attr.
so, no need to worry abt the callback methods..
regards,
Manish Malhotra
SE. PCS. IND.
 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need my entity bean for an add operation should go in Supports tx attribute.
So for my entity bean for an add operation which all methods I had to give the tx- attribute as Supports. As the tx-att Required is by default.
ejbCreate, ejbPostCreate and ejbStore or I had to specify the tx-attribute for some more methods also
 
reply
    Bookmark Topic Watch Topic
  • New Topic